diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Coin/hacks.mk | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/graphics/Coin/hacks.mk b/graphics/Coin/hacks.mk index dd57f1c7afa..34a8540a12e 100644 --- a/graphics/Coin/hacks.mk +++ b/graphics/Coin/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.1 2006/03/19 20:06:05 minskim Exp $ +# $NetBSD: hacks.mk,v 1.2 2006/05/28 15:50:05 joerg Exp $ .if !defined(COIN_HACKS_MK) COIN_HACKS_MK= defined @@ -13,4 +13,19 @@ PKG_HACKS+= optimization BUILDLINK_TRANSFORM+= rm:-O[0-9]* .endif +.if ${OPSYS} == "DragonFly" && ${PKGSRC_COMPILER} == "gcc" +# +# Workaround an ICE in the stack-smashing protection in GCC 3.4.x. +# +.if !defined(HAS_PROPOLICE) +HAS_PROPOLICE!= ( ${CC} -v 2>&1 | ${GREP} 'propolice' ) 2>/dev/null || echo no +MAKEVARS+= HAS_PROPOLICE +.endif + +.if ${HAS_PROPOLICE} != "no" +CFLAGS+= -fno-stack-protector +CXXFLAGS+= -fno-stack-protector +.endif +.endif + .endif # COIN_HACKS_MK |