summaryrefslogtreecommitdiff
path: root/textproc/scew/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-10 16:14:32 +0000
committerjoerg <joerg>2006-01-10 16:14:32 +0000
commit46164e629d5e7a88243f40855a2f8fcfa3c8a649 (patch)
tree2e1fc2c547d79efc9475e150941c2b1374caa8bc /textproc/scew/patches
parentd5c8eec20d469c7bdfa3a66283772be0b547cdb2 (diff)
downloadpkgsrc-46164e629d5e7a88243f40855a2f8fcfa3c8a649.tar.gz
Use PTHREAD_* instead of -lpthread.
Diffstat (limited to 'textproc/scew/patches')
-rw-r--r--textproc/scew/patches/patch-aa30
1 files changed, 30 insertions, 0 deletions
diff --git a/textproc/scew/patches/patch-aa b/textproc/scew/patches/patch-aa
new file mode 100644
index 00000000000..139dfc64b4a
--- /dev/null
+++ b/textproc/scew/patches/patch-aa
@@ -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