diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-31 22:39:14 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-31 22:39:14 +0000 |
commit | 42d619b8aed86b21514fccb63a01f91229b82462 (patch) | |
tree | e1a16303fb6800df7d1b0f8c988d29884316f1ab /cmake | |
parent | 756d2cc2f7f6745603fdc0ec1ed4476d06385845 (diff) | |
download | external_llvm-42d619b8aed86b21514fccb63a01f91229b82462.zip external_llvm-42d619b8aed86b21514fccb63a01f91229b82462.tar.gz external_llvm-42d619b8aed86b21514fccb63a01f91229b82462.tar.bz2 |
Make sure to build libpthread to check for HAVE_PTHREAD_MUTEX_LOCK.
Patch by Brad Smith!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 94cc555..85af1f5 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -87,6 +87,7 @@ if( NOT PURE_WINDOWS ) 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(pthread pthread_mutex_lock "" HAVE_PTHREAD_MUTEX_LOCK) check_library_exists(dl dlopen "" HAVE_LIBDL) endif() @@ -134,9 +135,6 @@ check_symbol_exists(strchr string.h HAVE_STRCHR) check_symbol_exists(strcmp string.h HAVE_STRCMP) check_symbol_exists(strdup string.h HAVE_STRDUP) check_symbol_exists(strrchr string.h HAVE_STRRCHR) -if( NOT PURE_WINDOWS ) - check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK) -endif() check_symbol_exists(sbrk unistd.h HAVE_SBRK) check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48) if( HAVE_RAND48_SRAND48 ) |