aboutsummaryrefslogtreecommitdiff
path: root/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-29 16:25:22 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-29 16:25:22 +0000
commit48715a17c105685eda52c3803ee314cd12be7463 (patch)
treefb05a2fc643929feb026e76c501b37279a36997f /cmake/config-ix.cmake
parentc0309b48b560f119982c02a81416c8c1fd208648 (diff)
Fix CMake checks for pthread_getspecific and pthread_rwlock_init, from Xerxes Ranby
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/config-ix.cmake')
-rwxr-xr-xcmake/config-ix.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 61161ed63b..a613ddd8e3 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -44,6 +44,8 @@ check_include_file(windows.h HAVE_WINDOWS_H)
# library checks
include(CheckLibraryExists)
check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD)
+check_library_exists(pthread pthread_getspecific "" HAVE_PTHREAD_GETSPECIFIC)
+check_library_exists(pthread pthread_rwlock_init "" HAVE_PTHREAD_RWLOCK_INIT)
check_library_exists(dl dlopen "" HAVE_LIBDL)
# function checks
@@ -64,8 +66,6 @@ check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO)
check_symbol_exists(malloc_zone_statistics malloc/malloc.h
HAVE_MALLOC_ZONE_STATISTICS)
check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK)
-check_symbol_exists(pthread_rwlock_init pthread.h HAVE_PTHREAD_RWLOCK_INIT)
-check_symbol_exists(pthread_getspecific pthread.h HAVE_PTHREAD_GETSPECIFIC)
check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL)
check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC)