diff options
author | joerg <joerg@pkgsrc.org> | 2006-09-19 19:29:30 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-09-19 19:29:30 +0000 |
commit | bb7247fce3bcad8f9aacbe967e0f16e5f434d5cd (patch) | |
tree | c922fd777ca8f7f55ee703d2de404a7ee08c6392 /net/openh323 | |
parent | e3c6b091a5c5d558e6cdd09ced7d64df005ac161 (diff) | |
download | pkgsrc-bb7247fce3bcad8f9aacbe967e0f16e5f434d5cd.tar.gz |
Workaround for propolice ICE on DragonFly.
Diffstat (limited to 'net/openh323')
-rw-r--r-- | net/openh323/hacks.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/openh323/hacks.mk b/net/openh323/hacks.mk new file mode 100644 index 00000000000..271c4249808 --- /dev/null +++ b/net/openh323/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2006/09/19 19:29:30 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 |