summaryrefslogtreecommitdiff
path: root/multimedia/xine-ui/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2007-07-20 16:54:21 +0000
committerjoerg <joerg>2007-07-20 16:54:21 +0000
commit1a106aaa0ac656c4b98e92516d94916135d58bbc (patch)
treee314cd37b5d3ac7c830aa2afe9e123161062cce2 /multimedia/xine-ui/patches
parent4ecac8b37f12bc9796b6cf9a4ba9bc1364196a75 (diff)
downloadpkgsrc-1a106aaa0ac656c4b98e92516d94916135d58bbc.tar.gz
Readd fix for pthread detection.
Diffstat (limited to 'multimedia/xine-ui/patches')
-rw-r--r--multimedia/xine-ui/patches/patch-ab30
1 files changed, 30 insertions, 0 deletions
diff --git a/multimedia/xine-ui/patches/patch-ab b/multimedia/xine-ui/patches/patch-ab
new file mode 100644
index 00000000000..ed51835ca47
--- /dev/null
+++ b/multimedia/xine-ui/patches/patch-ab
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.3 2007/07/20 16:54:22 joerg Exp $
+
+--- configure.orig 2007-07-20 16:04:38.000000000 +0000
++++ configure
+@@ -7521,13 +7521,13 @@ case "$host" in
+ ;;
+
+ *)
+- 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_LDFLAGS} ${PTHREAD_LIBS}" >&5
++echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${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_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -7586,7 +7586,7 @@ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
+ echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
+ if test $ac_cv_lib_pthread_pthread_create = yes; then
+- THREAD_LIBS="-lpthread"
++ THREAD_LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
+ else
+ { { echo "$as_me:$LINENO: error: pthread needed" >&5
+ echo "$as_me: error: pthread needed" >&2;}