From dae8baf6294f3ec5a853ebc2b73ad42ecb563555 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 24 Sep 2006 20:02:42 +0000 Subject: Disable propolice on DragonFly to work around ICE. --- net/gnugk/hacks.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net/gnugk/hacks.mk (limited to 'net/gnugk') 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 -- cgit v1.2.3