s/-lpthread/-pthread/

This commit is contained in:
ajacoutot 2010-03-29 12:40:09 +00:00
parent e04d0415fd
commit 19950174b8
2 changed files with 32 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2009/01/09 17:43:38 naddy Exp $
# $OpenBSD: Makefile,v 1.20 2010/03/29 12:40:09 ajacoutot Exp $
.if ${MACHINE_ARCH} == "hppa"
BROKEN= signal-related bug? any program linked with this hangs
@ -7,7 +7,7 @@ BROKEN= signal-related bug? any program linked with this hangs
COMMENT= callback framework for C++
DISTNAME= libsigc++-1.0.4
PKGNAME= ${DISTNAME}p3
PKGNAME= ${DISTNAME}p4
SHARED_LIBS= sigc 1.0
MODGNU_SHARED_LIBS= sigc '-no-undefined'

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-configure,v 1.1 2010/03/29 12:40:09 ajacoutot Exp $
--- configure.orig Mon Mar 29 14:34:47 2010
+++ configure Mon Mar 29 14:34:55 2010
@@ -2668,14 +2668,14 @@ fi
if test "x$enable_threads" = "xyes" ; then
enable_threads="no"
-echo $ac_n "checking for pthread_self in -lpthread""... $ac_c" 1>&6
-echo "configure:2673: checking for pthread_self in -lpthread" >&5
+echo $ac_n "checking for pthread_self in -pthread""... $ac_c" 1>&6
+echo "configure:2673: checking for pthread_self in -pthread" >&5
ac_lib_var=`echo pthread'_'pthread_self | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2681 "configure"
#include "confdefs.h"
@@ -2706,7 +2706,7 @@ LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- enable_threads="yes";THREAD_LIB="-lpthread"
+ enable_threads="yes";THREAD_LIB="-pthread"
else
echo "$ac_t""no" 1>&6
fi