summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg>2006-05-02 13:32:30 +0000
committerjoerg <joerg>2006-05-02 13:32:30 +0000
commitbee340a175c570929f90ab6c4a29106ed1eb5317 (patch)
tree3cd7d6b32ca506218e5c6c17bd4332f5920031f8 /lang
parent9069bbd462ae7a330523ccc33d77da0f32a63de8 (diff)
downloadpkgsrc-bee340a175c570929f90ab6c4a29106ed1eb5317.tar.gz
DragonFly GCC ProPolice ICE.
Diffstat (limited to 'lang')
-rw-r--r--lang/maude/hacks.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/maude/hacks.mk b/lang/maude/hacks.mk
new file mode 100644
index 00000000000..cda2f6422c1
--- /dev/null
+++ b/lang/maude/hacks.mk
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2006/05/02 13:32:30 joerg Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+.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