pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/enigma Disable propolice on DragonFly to avoid ICE.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b42b0abbbb9
branches:  trunk
changeset: 514960:1b42b0abbbb9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jun 21 13:22:39 2006 +0000

description:
Disable propolice on DragonFly to avoid ICE.

diffstat:

 games/enigma/hacks.mk |  18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r 02cc53df4476 -r 1b42b0abbbb9 games/enigma/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/enigma/hacks.mk     Wed Jun 21 13:22:39 2006 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2006/06/21 13:22:39 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



Home | Main Index | Thread Index | Old Index