diff options
author | Dan Albert <danalbert@google.com> | 2014-07-14 17:00:29 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-07-14 17:00:29 +0000 |
commit | db8f33571359aa257861718139982ff943b5257d (patch) | |
tree | e55be9b2767c3ceffdac9a1fbf2274a7365eae35 /cmake | |
parent | 3110ea34663a90a1a568864c266d7c4498df2bde (diff) |
Fix for libc++abi when using -Wl,--as-needed.
The cmake files for libc++abi and the unwinder weren't linking against
libpthread or an unwind library. If the tests were linked with
-Wl,--as-needed, these libraries wouldn't be linked, causing them to
fail.
Patch contributed by İsmail Dönmez.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@212958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index f9babd3..f56fe82 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -36,3 +36,5 @@ check_cxx_compiler_flag(/GR- LIBCXXABI_HAS_NO_GR_FLAG) # Check libraries check_library_exists(c printf "" LIBCXXABI_HAS_C_LIB) +check_library_exists(pthread pthread_once "" LIBCXXABI_HAS_PTHREAD_LIB) +check_library_exists(gcc_eh _Unwind_GetRegionStart "" LIBCXXABI_HAS_GCC_EH_LIB) |