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
commitb52e66a3201f7123b43da61a1cfc001ba5bb51e6 (patch)
tree923d0520de0990ca46ce61e73e34609a63a25480 /graphics
parentd91c0b105fdba5e1ba21ab8e64e6883040716278 (diff)
downloadpkgsrc-b52e66a3201f7123b43da61a1cfc001ba5bb51e6.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