diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-29 16:25:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-29 16:25:22 +0000 |
commit | e081d902335fa6db44cb218870d4533444ec3e2d (patch) | |
tree | 9b205a2c2d989f6caa79665edc928535c7f0fd58 | |
parent | 8d9cc9ebc1c5e68d5acac19d7efaac1d13d1349b (diff) | |
download | bcm5719-llvm-e081d902335fa6db44cb218870d4533444ec3e2d.tar.gz bcm5719-llvm-e081d902335fa6db44cb218870d4533444ec3e2d.zip |
Fix CMake checks for pthread_getspecific and pthread_rwlock_init, from Xerxes Ranby
llvm-svn: 74426
-rwxr-xr-x | llvm/cmake/config-ix.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 61161ed63bb..a613ddd8e36 100755 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/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) |