pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/Coin Triggers ICE with Propolice on DragonFly...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aff2b21c6336
branches:  trunk
changeset: 513438:aff2b21c6336
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun May 28 15:50:05 2006 +0000

description:
Triggers ICE with Propolice on DragonFly: disable.

diffstat:

 graphics/Coin/hacks.mk |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r cfe52a08ccfd -r aff2b21c6336 graphics/Coin/hacks.mk
--- a/graphics/Coin/hacks.mk    Sun May 28 15:48:32 2006 +0000
+++ b/graphics/Coin/hacks.mk    Sun May 28 15:50:05 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2006/03/19 20:06:05 minskim Exp $
+# $NetBSD: hacks.mk,v 1.2 2006/05/28 15:50:05 joerg Exp $
 
 .if !defined(COIN_HACKS_MK)
 COIN_HACKS_MK= defined
@@ -13,4 +13,19 @@
 BUILDLINK_TRANSFORM+=   rm:-O[0-9]*
 .endif
 
+.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
+
 .endif # COIN_HACKS_MK



Home | Main Index | Thread Index | Old Index