pkgsrc/lang/gambc/hacks.mk
bjs c0ce7c31bf Add BUILDLINK_TRANSFORM+= rm:-pipe
Using -pipe takes too much memory.
2008-05-06 15:26:57 +00:00

15 lines
510 B
Makefile

# $NetBSD: hacks.mk,v 1.2 2008/05/06 15:26:57 bjs 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