Disable propolice on DragonFly to work around ICE.
This commit is contained in:
parent
6ce30ae99d
commit
dae8baf629
1 changed files with 18 additions and 0 deletions
18
net/gnugk/hacks.mk
Normal file
18
net/gnugk/hacks.mk
Normal file
|
@ -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
|
Loading…
Reference in a new issue