diff options
author | tnn <tnn> | 2007-04-24 11:00:36 +0000 |
---|---|---|
committer | tnn <tnn> | 2007-04-24 11:00:36 +0000 |
commit | 3d005dd51188bd0901d0872ba235524ee11c13ec (patch) | |
tree | 90ece830f72fab8918c721d2f7aed02c58d63fcb /devel | |
parent | 462bcbc67124eb88017ad10507f2893253d0d644 (diff) | |
download | pkgsrc-3d005dd51188bd0901d0872ba235524ee11c13ec.tar.gz |
Add hack for glib2 on hp-ux/hppa: build without optimization due to crash
in libgobject early in libgtk2 startup.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/glib2/hacks.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/glib2/hacks.mk b/devel/glib2/hacks.mk new file mode 100644 index 00000000000..8658f4da651 --- /dev/null +++ b/devel/glib2/hacks.mk @@ -0,0 +1,13 @@ +# $NetBSD: hacks.mk,v 1.1 2007/04/24 11:00:36 tnn 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 + +.endif # GLIB2_HACKS_MK |