summaryrefslogtreecommitdiff
path: root/games/urban/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'games/urban/patches/patch-ah')
-rw-r--r--games/urban/patches/patch-ah31
1 files changed, 31 insertions, 0 deletions
diff --git a/games/urban/patches/patch-ah b/games/urban/patches/patch-ah
new file mode 100644
index 00000000000..ce382d0ef48
--- /dev/null
+++ b/games/urban/patches/patch-ah
@@ -0,0 +1,31 @@
+$NetBSD: patch-ah,v 1.3 2006/03/29 22:41:01 joerg Exp $
+
+--- configure.orig 2006-03-29 20:51:26.000000000 +0000
++++ configure
+@@ -1501,14 +1501,14 @@ else
+ fi
+ done
+
+-echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
+-echo "configure:1506: checking for pthread_mutex_init in -lpthread" >&5
++echo $ac_n "checking for pthread_mutex_init in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}""... $ac_c" 1>&6
++echo "configure:1506: checking for pthread_mutex_init in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
+ ac_lib_var=`echo pthread'_'pthread_mutex_init | 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_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 1514 "configure"
+ #include "confdefs.h"
+@@ -1536,7 +1536,7 @@ LIBS="$ac_save_LIBS"
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- PTHREAD_LIBS="-lpthread"
++ PTHREAD_LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
+ else
+ echo "$ac_t""no" 1>&6
+ { echo "configure: error: "Urban needs pthreads"" 1>&2; exit 1; }