summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-09-05 15:33:01 +0000
committertron <tron@pkgsrc.org>2008-09-05 15:33:01 +0000
commit3c58b4016a9dc7f3dd4e3daaa7f3c063accc3207 (patch)
treee7ad2eb92d4351cc69fa6e3402395ac77a7d0b6c /devel
parenta5b4e858902716232aeabd347443dc24944fb52e (diff)
downloadpkgsrc-3c58b4016a9dc7f3dd4e3daaa7f3c063accc3207.tar.gz
Re-add hacks that I accidently removed when adding the work around for
the Darwin Universal build problem. Problem noted by Tobias Nygren.
Diffstat (limited to 'devel')
-rw-r--r--devel/glib2/hacks.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/devel/glib2/hacks.mk b/devel/glib2/hacks.mk
index 6589d54d78d..56b6522d3b4 100644
--- a/devel/glib2/hacks.mk
+++ b/devel/glib2/hacks.mk
@@ -1,12 +1,19 @@
-# $NetBSD: hacks.mk,v 1.3 2008/07/14 16:45:53 tron Exp $
+# $NetBSD: hacks.mk,v 1.4 2008/09/05 15:33:01 tron Exp $
.if !defined(GLIB2_HACKS_MK)
GLIB2_HACKS_MK= # defined
+# Build without optimization. Avoids crash in libgobject on gtk2
+# initialization. Bug is triggered regardless of whether we're using gcc or
+# aCC.
+. if !empty(MACHINE_PLATFORM:MHPUX-*-hppa)
+PKG_HACKS+= hppa-codegen
+CFLAGS:= -O0 ${CFLAGS:C/[+,-]O[0-9]?//g}
+. endif
+
# "glib2" supports support for Universal Binaries. But a lot of packages
# using it (e.g. "gtk2+") don't support it. We therefore disable it.
-. include "../../mk/bsd.fast.prefs.mk"
. if ${OPSYS} == "Darwin"
PKG_HACKS+= darwin-no-universal
. if ${MACHINE_ARCH} == "powerpc"
@@ -16,4 +23,11 @@ CONFIGURE_ENV+= ac_cv_c_bigendian=no
. endif
. endif
+# Work around unresolved symbol g_test_config_vars during build
+.include "../../mk/compiler.mk"
+. if !empty(PKGSRC_COMPILER:Msunpro)
+PKG_HACKS+= sunpro-visibility
+CONFIGURE_ARGS+= --disable-visibility
+. endif
+
.endif