Fix CMake check for pthread_mutex_lock: use check_library_exists()
function instead of the buggy check_symbol_exists(). ok sthen@
This commit is contained in:
parent
827dc86b88
commit
fa4bc9a99d
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.40 2012/04/23 23:11:01 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.41 2012/05/05 19:24:01 dcoppa Exp $
|
||||
|
||||
SHARED_LIBS += libclang 0.0 # 3.0
|
||||
|
||||
COMMENT = modular, fast C/C++/ObjC compiler, static analyzer and tools
|
||||
|
||||
LLVM_V = 3.0
|
||||
REVISION = 1
|
||||
REVISION = 2
|
||||
DISTNAME = llvm-${LLVM_V}
|
||||
|
||||
CATEGORIES = devel
|
||||
|
24
devel/llvm/patches/patch-cmake_config-ix_cmake
Normal file
24
devel/llvm/patches/patch-cmake_config-ix_cmake
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-cmake_config-ix_cmake,v 1.1 2012/05/05 19:24:01 dcoppa Exp $
|
||||
|
||||
Fix CMake check for pthread_mutex_lock
|
||||
|
||||
--- cmake/config-ix.cmake.orig Fri May 4 14:05:40 2012
|
||||
+++ cmake/config-ix.cmake Fri May 4 14:07:10 2012
|
||||
@@ -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()
|
||||
|
||||
@@ -131,9 +132,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 )
|
Loading…
Reference in New Issue
Block a user