33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
$OpenBSD: patch-configure,v 1.2 2011/10/13 11:15:41 dcoppa Exp $
|
|
|
|
Fix libpthread linkage
|
|
|
|
--- configure.orig Tue Oct 11 21:34:09 2011
|
|
+++ configure Thu Oct 13 12:53:07 2011
|
|
@@ -15429,13 +15429,13 @@ if test "x$ac_cv_header_pthread_h" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_PTHREAD_H 1
|
|
_ACEOF
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
|
|
-$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -pthread" >&5
|
|
+$as_echo_n "checking for pthread_create in -pthread... " >&6; }
|
|
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lpthread $LIBS"
|
|
+LIBS="-pthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
@@ -15466,7 +15466,7 @@ fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
|
|
- LDFLAGS="$LDFLAGS -lpthread"
|
|
+ LDFLAGS="$LDFLAGS -pthread"
|
|
else
|
|
as_fn_error $? "pthread.h found but there is no pthread library to make use of" "$LINENO" 5
|
|
|