diff options
author | joerg <joerg@pkgsrc.org> | 2006-08-26 16:04:10 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-08-26 16:04:10 +0000 |
commit | f8bcea3e317257415bcb92fe51f2b3de707865d0 (patch) | |
tree | 34b3af5fa0a2fa3d3a82819757fea37f9939edc0 /devel | |
parent | 7470a886da0a3c9a7d3991791c5fd13dd2fb443f (diff) | |
download | pkgsrc-f8bcea3e317257415bcb92fe51f2b3de707865d0.tar.gz |
Workaround ICE on DragonFly 1.6 with propolice by disabling it.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/pwlib/hacks.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/pwlib/hacks.mk b/devel/pwlib/hacks.mk new file mode 100644 index 00000000000..202bac6cea9 --- /dev/null +++ b/devel/pwlib/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2006/08/26 16:04:10 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 |