summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-05-28 15:50:05 +0000
committerjoerg <joerg@pkgsrc.org>2006-05-28 15:50:05 +0000
commit2846bc67784fae95300f0d04d61c07b76b8b195f (patch)
tree923d0520de0990ca46ce61e73e34609a63a25480 /graphics
parentd6d81386f6c8bb0dc80d4c8f7f509d60e9d7aa1f (diff)
downloadpkgsrc-2846bc67784fae95300f0d04d61c07b76b8b195f.tar.gz
Triggers ICE with Propolice on DragonFly: disable.
Diffstat (limited to 'graphics')
-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