summaryrefslogtreecommitdiff
path: root/graphics/Coin
diff options
context:
space:
mode:
authorjoerg <joerg>2006-05-28 15:50:05 +0000
committerjoerg <joerg>2006-05-28 15:50:05 +0000
commit1a751053ec0396a32667c316c04db2cfc40e00d2 (patch)
tree923d0520de0990ca46ce61e73e34609a63a25480 /graphics/Coin
parente9524c1c48d4165145befa843ef85bc9ffc6e903 (diff)
downloadpkgsrc-1a751053ec0396a32667c316c04db2cfc40e00d2.tar.gz
Triggers ICE with Propolice on DragonFly: disable.
Diffstat (limited to 'graphics/Coin')
-rw-r--r--graphics/Coin/hacks.mk17
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