diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2014-11-27 11:48:08 -0800 |
---|---|---|
committer | Aliaksey Kandratsenka <alk@tut.by> | 2014-11-27 12:30:36 -0800 |
commit | 3b94031d21fac39ce5be820f4f8bc37626ed4c08 (patch) | |
tree | 0b672d7d91588aca62e40169a42ada92cb87d087 /src/stacktrace.cc | |
parent | 3ace468202a8647a16134d0bb42fa497fa3ec0d4 (diff) | |
download | gperftools-3b94031d21fac39ce5be820f4f8bc37626ed4c08.tar.gz |
compile libunwind unwinder only of __thread is supported
This fixed build on certain OSX that I have access to.
Diffstat (limited to 'src/stacktrace.cc')
-rw-r--r-- | src/stacktrace.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stacktrace.cc b/src/stacktrace.cc index 549b252..999863c 100644 --- a/src/stacktrace.cc +++ b/src/stacktrace.cc @@ -90,7 +90,9 @@ struct GetStackImplementation { #define HAVE_GST_generic #endif -#if HAVE_LIBUNWIND_H +// libunwind uses __thread so we check for both libunwind.h and +// __thread support +#if defined(HAVE_LIBUNWIND_H) && defined(HAVE_TLS) #define STACKTRACE_INL_HEADER "stacktrace_libunwind-inl.h" #define GST_SUFFIX libunwind #include "stacktrace_impl_setup-inl.h" |