pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/glib2 Try "-pthreads" before "-pthread" to work ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ef875b12da6d
branches:  trunk
changeset: 471845:ef875b12da6d
user:      tron <tron%pkgsrc.org@localhost>
date:      Wed Mar 31 19:41:21 2004 +0000

description:
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:

 devel/glib2/distinfo         |   4 ++--
 devel/glib2/patches/patch-aa |  15 ++++++++++++---
 2 files changed, 14 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r a4f14fd1b9a1 -r ef875b12da6d devel/glib2/distinfo
--- a/devel/glib2/distinfo      Wed Mar 31 19:20:26 2004 +0000
+++ b/devel/glib2/distinfo      Wed Mar 31 19:41:21 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.24 2004/01/07 07:33:54 xtraeme Exp $
+$NetBSD: distinfo,v 1.25 2004/03/31 19:41:21 tron Exp $
 
 SHA1 (glib-2.2.3.tar.bz2) = 05580cbe110b94dd5020a07cf6d380190a2a13af
 Size (glib-2.2.3.tar.bz2) = 1636987 bytes
-SHA1 (patch-aa) = 29ff7360a007d3d02cc3c28dce20e42ccf24bd5a
+SHA1 (patch-aa) = 62ef4cd4908314d843b99aa792d94b3865c439f2
 SHA1 (patch-ab) = b951b1480eaa66074e311f347df2e1b137ec7089
 SHA1 (patch-ac) = 1b94c567ac0086abfc927f5af1e657f14b091218
 SHA1 (patch-ad) = 58739c123a640a66206c9afa8c28d81e3eb02986
diff -r a4f14fd1b9a1 -r ef875b12da6d devel/glib2/patches/patch-aa
--- a/devel/glib2/patches/patch-aa      Wed Mar 31 19:20:26 2004 +0000
+++ b/devel/glib2/patches/patch-aa      Wed Mar 31 19:41:21 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index