summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-17 18:54:15 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-17 18:54:15 +0000
commitbbf29e2989c0bc8cadc865208affbfbb4c384390 (patch)
tree1e996d7ef66acf56a7d29343837014de4b854dfc /net
parentc39ae869940fb6aff224b4031c6cbec09af90f5f (diff)
downloadpkgsrc-bbf29e2989c0bc8cadc865208affbfbb4c384390.tar.gz
Disable propolice on DragonFly, when available. It currently produces
an ICE. Fixes PR 31892.
Diffstat (limited to 'net')
-rw-r--r--net/libtorrent/hacks.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/libtorrent/hacks.mk b/net/libtorrent/hacks.mk
new file mode 100644
index 00000000000..099f078167a
--- /dev/null
+++ b/net/libtorrent/hacks.mk
@@ -0,0 +1,19 @@
+# $NetBSD: hacks.mk,v 1.1 2005/11/17 18:54:15 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