summaryrefslogtreecommitdiff
path: root/devel/pwlib
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-08-26 16:04:10 +0000
committerjoerg <joerg@pkgsrc.org>2006-08-26 16:04:10 +0000
commitc97f660dca1e8c0e151539b744a5e8410ff4e07e (patch)
tree34b3af5fa0a2fa3d3a82819757fea37f9939edc0 /devel/pwlib
parent0b9cc38f3e8335cd502a3424a3d0229ee655cfa5 (diff)
downloadpkgsrc-c97f660dca1e8c0e151539b744a5e8410ff4e07e.tar.gz
Workaround ICE on DragonFly 1.6 with propolice by disabling it.
Diffstat (limited to 'devel/pwlib')
-rw-r--r--devel/pwlib/hacks.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/pwlib/hacks.mk b/devel/pwlib/hacks.mk
new file mode 100644
index 00000000000..202bac6cea9
--- /dev/null
+++ b/devel/pwlib/hacks.mk
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2006/08/26 16:04:10 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