pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/pwlib Workaround ICE on DragonFly 1.6 with propo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/816e5b72bea7
branches:  trunk
changeset: 517944:816e5b72bea7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Aug 26 16:04:10 2006 +0000

description:
Workaround ICE on DragonFly 1.6 with propolice by disabling it.

diffstat:

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

diffs (22 lines):

diff -r d14a090d1b3e -r 816e5b72bea7 devel/pwlib/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pwlib/hacks.mk      Sat Aug 26 16:04:10 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index