diff options
author | joerg <joerg@pkgsrc.org> | 2006-05-02 13:32:30 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-05-02 13:32:30 +0000 |
commit | f224931835f7a9a203ad10a4db3febdccccee4ea (patch) | |
tree | 3cd7d6b32ca506218e5c6c17bd4332f5920031f8 /lang | |
parent | 6858b24aeda50f429847030aebc5a11f0dbb4551 (diff) | |
download | pkgsrc-f224931835f7a9a203ad10a4db3febdccccee4ea.tar.gz |
DragonFly GCC ProPolice ICE.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/maude/hacks.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/maude/hacks.mk b/lang/maude/hacks.mk new file mode 100644 index 00000000000..cda2f6422c1 --- /dev/null +++ b/lang/maude/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2006/05/02 13:32: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 |