pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/glib2 Be sure libgthread is linked to libc_r, be...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2680938aa514
branches: trunk
changeset: 472981:2680938aa514
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Thu Apr 15 01:49:41 2004 +0000
description:
Be sure libgthread is linked to libc_r, because -pthread does not work
with libraries, fixes problems seen when building net/ORBit2 in FreeBSD
(doesn't affect others systems).
diffstat:
devel/glib2/Makefile | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 55d9edfe5b90 -r 2680938aa514 devel/glib2/Makefile
--- a/devel/glib2/Makefile Thu Apr 15 00:58:48 2004 +0000
+++ b/devel/glib2/Makefile Thu Apr 15 01:49:41 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2004/04/06 07:15:53 jmmv Exp $
+# $NetBSD: Makefile,v 1.47 2004/04/15 01:49:41 xtraeme Exp $
DISTNAME= glib-2.4.0
PKGNAME= ${DISTNAME:S/glib/glib2/}
@@ -39,6 +39,23 @@
# Avoid an ICE in gcc2 on sparc64
CONFIGURE_ENV+= F77=${FALSE}
+.include "../../mk/bsd.prefs.mk"
+
+# FreeBSD fix for libgthread:
+# Be sure libgthread is linked to the threaded library (libc_r), otherwise
+# -pthread is added and this won't work with libraries, only executable
+# binaries.
+
+.if ${OPSYS} == "FreeBSD"
+
+SUBST_CLASSES= thr
+SUBST_STAGE.thr= post-patch
+SUBST_FILES.thr= gthread/Makefile.in
+SUBST_SED.thr= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g"
+SUBST_MESSAGE.thr= "Fixing libgthread."
+
+.endif
+
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/pkgconfig/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index