diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-05-20 21:18:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-05-20 21:18:12 +0000 |
commit | f77c43d1f362f817c7801f48c59b715eae726613 (patch) | |
tree | 2f3f37c9a0ae186cb4438cee85b0025e733ef422 /cmake | |
parent | ccdd1ce520e1e58537c9b705453b19fae776816d (diff) |
Reinstate r269992 (reverting r270267), but restricted to cases where glibc is
the C standard library implementation in use.
This works around a glibc bug in the backtrace() function where it fails to
produce a backtrace on x86_64 if libgcc / libunwind is statically linked.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 7d5277517a9..b3f225f0740 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -144,6 +144,7 @@ endif() # function checks check_symbol_exists(arc4random "stdlib.h" HAVE_DECL_ARC4RANDOM) check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE) +check_symbol_exists(_Unwind_Backtrace "unwind.h" HAVE_UNWIND_BACKTRACE) check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE) check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT) |