pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/openh323 Workaround for propolice ICE on DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/efc0fedd0c63
branches:  trunk
changeset: 518830:efc0fedd0c63
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Sep 19 19:29:30 2006 +0000

description:
Workaround for propolice ICE on DragonFly.

diffstat:

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

diffs (22 lines):

diff -r 3a993fffef3c -r efc0fedd0c63 net/openh323/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openh323/hacks.mk     Tue Sep 19 19:29:30 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index