pkgsrc/graphics/Coin/hacks.mk
obache cef30fa7e7 mk/compiler.mk is included after mk/bsd.hacks.mk in mk/bsd.pkg.mk,
so it must be included in hacks.mk exactly before using CC_VERSION.
2013-06-13 09:02:50 +00:00

17 lines
484 B
Makefile

# $NetBSD: hacks.mk,v 1.6 2013/06/13 09:02:50 obache Exp $
.if !defined(COIN_HACKS_MK)
COIN_HACKS_MK= defined
###
### Compiling Coin on NetBSD with optimization causes an internal
### compiler error. This is a workaround for PR toolchain/33097.
### Not sure if other platforms have the same issue.
###
.include "../../mk/compiler.mk"
.if ${OPSYS} == "NetBSD" && !empty(CC_VERSION:Mgcc-3.*)
PKG_HACKS+= optimization
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
.endif
.endif # COIN_HACKS_MK