| @@ -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) |
4 | GLIB2_HACKS_MK= defined | | 4 | GLIB2_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) |
9 | PKG_HACKS+= hppa-codegen | | 9 | PKG_HACKS+= hppa-codegen |
10 | CFLAGS:= -O0 ${CFLAGS:C/[+,-]O[0-9]?//g} | | 10 | CFLAGS:= -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) |
| | | 16 | PKG_HACKS+= sunpro-visibility |
| | | 17 | CONFIGURE_ARGS+= --disable-visibility |
| | | 18 | .endif |
| | | 19 | |
13 | .endif # GLIB2_HACKS_MK | | 20 | .endif # GLIB2_HACKS_MK |