summaryrefslogtreecommitdiff
path: root/devel/glib2/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-03-31 19:41:21 +0000
committertron <tron@pkgsrc.org>2004-03-31 19:41:21 +0000
commit357ef5b72d1306d482c25241e2755ef482687a13 (patch)
tree00840a7fd7cc92e6a4a3e430d2fc94a8d2f26784 /devel/glib2/patches
parent1f3a71d6ef86b1fc857ddf4426cf4c1b5384beb2 (diff)
downloadpkgsrc-357ef5b72d1306d482c25241e2755ef482687a13.tar.gz
Try "-pthreads" before "-pthread" to work arround a problem in the
"configure" script which otherwise picks "-pthreads" as the compiler option for POSIX's Threads. The real problem is probably that the buildlink3 framework passes "-pthread" as a compiler option to "configure" and therefore defeats the probes in the "configure" script. But that's hard to fix.
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r--devel/glib2/patches/patch-aa15
1 files changed, 12 insertions, 3 deletions
diff --git a/devel/glib2/patches/patch-aa b/devel/glib2/patches/patch-aa
index 69e82555444..f54c9c179a5 100644
--- a/devel/glib2/patches/patch-aa
+++ b/devel/glib2/patches/patch-aa
@@ -1,8 +1,17 @@
-$NetBSD: patch-aa,v 1.9 2003/11/11 13:39:09 fvdl Exp $
+$NetBSD: patch-aa,v 1.10 2004/03/31 19:41:21 tron Exp $
--- configure.orig 2003-08-26 18:42:14.000000000 +0200
-+++ configure
-@@ -31199,7 +31199,7 @@ fi
++++ configure 2004-03-31 21:33:30.000000000 +0200
+@@ -28920,7 +28920,7 @@
+ # both CPPFLAG and LIBS.
+ # One of them does for most gcc versions and some other platforms/compilers
+ # too and could be considered as the canonical way to go.
+- for flag in pthread pthreads; do
++ for flag in pthreads pthread; do
+ glib_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -$flag"
+ if test "$cross_compiling" = yes; then
+@@ -31199,7 +31199,7 @@
# b) libtool doesn't recognize -pthread as a library dependency.
#
case $host in