summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-06-21 13:22:39 +0000
committerjoerg <joerg@pkgsrc.org>2006-06-21 13:22:39 +0000
commit87882919620aa4a3b65e933985a760bcb6f2f624 (patch)
tree3434bfbdb4f3458fed1a83d3700a4d002412375d /games
parentb8b44586ce8e9045cef2df2fd363fc5f6b421538 (diff)
downloadpkgsrc-87882919620aa4a3b65e933985a760bcb6f2f624.tar.gz
Disable propolice on DragonFly to avoid ICE.
Diffstat (limited to 'games')
-rw-r--r--games/enigma/hacks.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/enigma/hacks.mk b/games/enigma/hacks.mk
new file mode 100644
index 00000000000..4537a21dd75
--- /dev/null
+++ b/games/enigma/hacks.mk
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2006/06/21 13:22:39 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