Sun Apr 27 11:00:46 2008 UTC ()
Build with --disable-visibility when using sunpro compiler, to prevent
unresolved symbol "g_test_config_vars" during build.


(tnn)
diff -r1.1 -r1.2 pkgsrc/devel/glib2/hacks.mk

cvs diff -r1.1 -r1.2 pkgsrc/devel/glib2/Attic/hacks.mk (expand / switch to unified diff)

--- pkgsrc/devel/glib2/Attic/hacks.mk 2007/04/24 11:00:36 1.1
+++ pkgsrc/devel/glib2/Attic/hacks.mk 2008/04/27 11:00:46 1.2
@@ -1,13 +1,20 @@ @@ -1,13 +1,20 @@
1# $NetBSD: hacks.mk,v 1.1 2007/04/24 11:00:36 tnn Exp $ 1# $NetBSD: hacks.mk,v 1.2 2008/04/27 11:00:46 tnn Exp $
2 2
3.if !defined(GLIB2_HACKS_MK) 3.if !defined(GLIB2_HACKS_MK)
4GLIB2_HACKS_MK= defined 4GLIB2_HACKS_MK= defined
5 5
6# Build without optimization. Avoids crash in libgobject on gtk2 initialization. 6# Build without optimization. Avoids crash in libgobject on gtk2 initialization.
7# Bug is triggered regardless of whether we're using gcc or aCC. 7# Bug is triggered regardless of whether we're using gcc or aCC.
8.if !empty(MACHINE_PLATFORM:MHPUX-*-hppa) 8.if !empty(MACHINE_PLATFORM:MHPUX-*-hppa)
9PKG_HACKS+= hppa-codegen 9PKG_HACKS+= hppa-codegen
10CFLAGS:= -O0 ${CFLAGS:C/[+,-]O[0-9]?//g} 10CFLAGS:= -O0 ${CFLAGS:C/[+,-]O[0-9]?//g}
11.endif 11.endif
12 12
 13# Work around unresolved symbol g_test_config_vars during build
 14.include "../../mk/compiler.mk"
 15.if !empty(PKGSRC_COMPILER:Msunpro)
 16PKG_HACKS+= sunpro-visibility
 17CONFIGURE_ARGS+= --disable-visibility
 18.endif
 19
13.endif # GLIB2_HACKS_MK 20.endif # GLIB2_HACKS_MK