diff options
author | joerg <joerg> | 2006-09-24 20:02:42 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-09-24 20:02:42 +0000 |
commit | 7e1d9630704bd72aef7ad44a8a420a70c6b340c9 (patch) | |
tree | ad46e6032d365e63abe22c97d50290f3a0038598 /net | |
parent | 289b8cb88da1c8ecf8f06a422cab39f85921ea34 (diff) | |
download | pkgsrc-7e1d9630704bd72aef7ad44a8a420a70c6b340c9.tar.gz |
Disable propolice on DragonFly to work around ICE.
Diffstat (limited to 'net')
-rw-r--r-- | net/gnugk/hacks.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/gnugk/hacks.mk b/net/gnugk/hacks.mk new file mode 100644 index 00000000000..0862243fbda --- /dev/null +++ b/net/gnugk/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2006/09/24 20:02:42 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 |