diff --git a/include/dwarf.h b/include/dwarf.h index 71e9df60..169f739e 100644 --- a/include/dwarf.h +++ b/include/dwarf.h @@ -37,6 +37,13 @@ struct elf_dyn_info; # include "config.h" #endif +#ifdef HAVE___THREAD + /* For now, turn off per-thread caching. It uses up too much TLS + memory per thread even when the thread never uses libunwind at + all. */ +# undef HAVE___THREAD +#endif + #ifndef UNW_REMOTE_ONLY #if defined(HAVE_LINK_H) #include