[llvm-commits] [llvm] r74426 - /llvm/trunk/cmake/config-ix.cmake

Douglas Gregor dgregor at apple.com
Mon Jun 29 09:25:23 PDT 2009


Author: dgregor
Date: Mon Jun 29 11:25:22 2009
New Revision: 74426

URL: http://llvm.org/viewvc/llvm-project?rev=74426&view=rev
Log:
Fix CMake checks for pthread_getspecific and pthread_rwlock_init, from Xerxes Ranby

Modified:
    llvm/trunk/cmake/config-ix.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=74426&r1=74425&r2=74426&view=diff

==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Mon Jun 29 11:25:22 2009
@@ -44,6 +44,8 @@
 # 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(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)





More information about the llvm-commits mailing list