Disable propolice on DragonFly, when available. It currently produces

an ICE.

Fixes PR 31892.
This commit is contained in:
joerg 2005-11-17 18:54:15 +00:00
parent c39ae86994
commit bbf29e2989

19
net/libtorrent/hacks.mk Normal file
View file

@ -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