summaryrefslogtreecommitdiff
path: root/lang/gambc/hacks.mk
blob: 7d953385a6b561032bdca9ac6232a199ec667653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $NetBSD: hacks.mk,v 1.3 2019/11/03 19:03:57 rillig Exp $
###
.if !defined(GAMBC_HACKS_MK)
GAMBC_HACKS_MK=	# empty
.include "../../mk/compiler.mk"
###
### It looks as if the developers don't think O2 is a win.  Considering how
### much memory and time this package takes to build the more optimization
### is enabled, let's let the configure script do its job.
###
.if !empty(CC_VERSION:Mgcc-*)
BUILDLINK_TRANSFORM+=	rm:-O[2-9s]*
.endif
BUILDLINK_TRANSFORM+=	rm:-pipe	# XXX takes up too much memory
.endif