pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/efltk Don't use hard-coded -lpthread for pthread d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9b4eb5e515a
branches:  trunk
changeset: 508368:c9b4eb5e515a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Feb 18 14:25:03 2006 +0000

description:
Don't use hard-coded -lpthread for pthread detection, but PTHREAD_*.
Ride on last revision bump.

diffstat:

 x11/efltk/distinfo         |   3 ++-
 x11/efltk/patches/patch-ah |  30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletions(-)

diffs (48 lines):

diff -r 3d95cb8004ec -r c9b4eb5e515a x11/efltk/distinfo
--- a/x11/efltk/distinfo        Sat Feb 18 14:22:13 2006 +0000
+++ b/x11/efltk/distinfo        Sat Feb 18 14:25:03 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2006/02/18 14:07:54 joerg Exp $
+$NetBSD: distinfo,v 1.4 2006/02/18 14:25:03 joerg Exp $
 
 SHA1 (efltk-2.0.5.tar.bz2) = 26f7124b384d0bfe3d28a73cbdf0111432b08d99
 RMD160 (efltk-2.0.5.tar.bz2) = 7efa711d0df8a01ee402e1866286265d294778e8
@@ -10,3 +10,4 @@
 SHA1 (patch-ae) = db02f224887f6d0e55334310ad0a3f09da6499b8
 SHA1 (patch-af) = 2fe44ea57e0579dcfa43ba597e52161c70f67efd
 SHA1 (patch-ag) = 29799b2b0aeffbca82dbc98cb1e06eb62a7e595a
+SHA1 (patch-ah) = d08c03978e902e6cb8fbc6523be5b260b3c8eb63
diff -r 3d95cb8004ec -r c9b4eb5e515a x11/efltk/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/efltk/patches/patch-ah        Sat Feb 18 14:25:03 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ah,v 1.1 2006/02/18 14:25:03 joerg Exp $
+
+--- configure.orig     2006-02-18 14:10:57.000000000 +0000
++++ configure
+@@ -8295,13 +8295,13 @@ if test $ac_cv_lib_c_pthread_create = ye
+   \
+      have_pthread=yes
+ else
+-  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
++  echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LDADD} ${PTHREAD_LIBS}" >&5
++echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDADD} ${PTHREAD_LIBS}... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread  $LIBS"
++LIBS="${PTHREAD_LDADD} ${PTHREAD_LIBS}  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF
+@@ -8361,7 +8361,7 @@ echo "$as_me:$LINENO: result: $ac_cv_lib
+ echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
+ if test $ac_cv_lib_pthread_pthread_create = yes; then
+   \
+-        THREADSLIBS=-lpthread have_pthread=yes
++        THREADSLIBS="${PTHREAD_LDADD} ${PTHREAD_LIBS}" have_pthread=yes
+ fi
+ 
+ fi



Home | Main Index | Thread Index | Old Index