diff options
author | joerg <joerg> | 2007-01-15 19:34:43 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-01-15 19:34:43 +0000 |
commit | 7b8d293a85bc383ba415949997ad77ee65472399 (patch) | |
tree | d86dd07bdc7443d6363807cdf7ed23c83cd5c2fe /net/ktorrent | |
parent | 9b8d674a410548e25d2bd153fe0ae9a71d6dad1b (diff) | |
download | pkgsrc-7b8d293a85bc383ba415949997ad77ee65472399.tar.gz |
Disable propolice on DragonFly for now.
Diffstat (limited to 'net/ktorrent')
-rw-r--r-- | net/ktorrent/hacks.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/ktorrent/hacks.mk b/net/ktorrent/hacks.mk new file mode 100644 index 00000000000..bd7ef770069 --- /dev/null +++ b/net/ktorrent/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2007/01/15 19:34:43 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 |