pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/scew Use PTHREAD_* instead of -lpthread.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9e2997586dfa
branches:  trunk
changeset: 506004:9e2997586dfa
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jan 10 16:14:32 2006 +0000

description:
Use PTHREAD_* instead of -lpthread.

diffstat:

 textproc/scew/distinfo         |   3 ++-
 textproc/scew/patches/patch-aa |  30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 40e5355487dd -r 9e2997586dfa textproc/scew/distinfo
--- a/textproc/scew/distinfo    Tue Jan 10 15:50:39 2006 +0000
+++ b/textproc/scew/distinfo    Tue Jan 10 16:14:32 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 14:48:49 agc Exp $
+$NetBSD: distinfo,v 1.3 2006/01/10 16:14:32 joerg Exp $
 
 SHA1 (scew-0.3.1.tar.gz) = 7a6a437957bc7aefc840af322da180f84fd77520
 RMD160 (scew-0.3.1.tar.gz) = 3632cb3fb2d9867a7f79ab7b2cc9b380620fcbce
 Size (scew-0.3.1.tar.gz) = 106116 bytes
+SHA1 (patch-aa) = 089d4c52f4735c212ef27c8bfdfded1f7becb5de
diff -r 40e5355487dd -r 9e2997586dfa textproc/scew/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/scew/patches/patch-aa    Tue Jan 10 16:14:32 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1 2006/01/10 16:14:32 joerg Exp $
+
+--- configure.orig     2006-01-10 16:06:02.000000000 +0000
++++ configure
+@@ -4225,13 +4225,13 @@ fi
+ 
+ 
+ 
+-echo "$as_me:$LINENO: checking for pthread_key_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_key_create in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_key_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
++echo $ECHO_N "checking for pthread_key_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_key_create+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread  $LIBS"
++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h.  */
+@@ -4284,7 +4284,7 @@ if test $ac_cv_lib_pthread_pthread_key_c
+ #define HAVE_LIBPTHREAD 1
+ _ACEOF
+ 
+-  LIBS="-lpthread $LIBS"
++  LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ 
+ else
+   { { echo "$as_me:$LINENO: error: Unable to find pthread libray." >&5



Home | Main Index | Thread Index | Old Index