summaryrefslogtreecommitdiff
path: root/devel/glib2/hacks.mk
blob: 8658f4da6511d7b041e5c04b369757450db94743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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