summaryrefslogtreecommitdiff
path: root/devel/glib2/patches
diff options
context:
space:
mode:
authorchris <chris>2003-02-09 00:57:13 +0000
committerchris <chris>2003-02-09 00:57:13 +0000
commitd29a8a903d88d81b3b71008a8798435a90258444 (patch)
tree354f05c107deea9135ab28e2c8865bff13ab6b9e /devel/glib2/patches
parent2307699e189cc382ebf67cd9acef9536a65230e5 (diff)
downloadpkgsrc-d29a8a903d88d81b3b71008a8798435a90258444.tar.gz
Fix gtk2 failing to build on -current. The problem is that the
gthread.la file doesn't note that pthread is a dependancy, so linking with libtool against libgthread breaks. It seems the workaround for libtool not understanding -pthread doesn't work, so we use the same thing as linux, and convert -pthread to -lpthread. gtk2 now builds to completion on -current Note that this has no impact on 1.6.1 as it doesn't use -pthread.
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r--devel/glib2/patches/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/glib2/patches/patch-ab b/devel/glib2/patches/patch-ab
new file mode 100644
index 00000000000..b0add5a45d3
--- /dev/null
+++ b/devel/glib2/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.6 2003/02/09 00:57:14 chris Exp $
+
+--- configure.orig 2003-02-09 00:44:10.000000000 +0000
++++ configure 2003-02-09 00:46:14.000000000 +0000
+@@ -19025,7 +19025,7 @@
+ # b) libtool doesn't recognize -pthread as a library dependency.
+ #
+ case $host in
+- *-*-linux*)
++ *-*-linux* | *-*-netbsd*)
+ G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
+ ;;
+ *)