2012-05-25 05:05:49 -04:00
|
|
|
$OpenBSD: patch-cmake_config-ix_cmake,v 1.2 2012/05/25 09:05:49 sthen Exp $
|
2012-05-05 15:24:01 -04:00
|
|
|
|
|
|
|
Fix CMake check for pthread_mutex_lock
|
|
|
|
|
2012-05-25 05:05:49 -04:00
|
|
|
--- cmake/config-ix.cmake.orig Mon Mar 26 22:56:56 2012
|
|
|
|
+++ cmake/config-ix.cmake Wed May 23 01:38:47 2012
|
2012-05-05 15:24:01 -04:00
|
|
|
@@ -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()
|
|
|
|
|
2012-05-25 05:05:49 -04:00
|
|
|
@@ -133,9 +134,6 @@ check_symbol_exists(strchr string.h HAVE_STRCHR)
|
2012-05-05 15:24:01 -04:00
|
|
|
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 )
|