Add hack for glib2 on hp-ux/hppa: build without optimization due to crash
in libgobject early in libgtk2 startup.
This commit is contained in:
parent
a5e2f9d2bd
commit
d819c3e007
1 changed files with 13 additions and 0 deletions
13
devel/glib2/hacks.mk
Normal file
13
devel/glib2/hacks.mk
Normal file
|
@ -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
|
Loading…
Reference in a new issue