Module Name:    src
Committed By:   tron
Date:           Mon Jul 18 16:55:49 UTC 2011

Modified Files:
        src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
Disable SSP warnings (not SSP itself) for this library as their are too
many source files with functions that use variable sized arrays.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/lgpl3/gmp/lib/libgmp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.8 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.9
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.8	Mon Jul  4 12:00:15 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Mon Jul 18 16:55:49 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2011/07/04 12:00:15 mrg Exp $
+#	$NetBSD: Makefile,v 1.9 2011/07/18 16:55:49 tron Exp $
 
 .include <bsd.init.mk>
 
@@ -121,7 +121,6 @@
 # these are generated
 SRCS+=	fib_table.c mp_bases.c
 
-
 # Build the files that may have multiple identical base names under
 # different names.
 .for _dir _srcfile in \
@@ -189,3 +188,9 @@
 	${.CURDIR}/arch/${LIBGMP_MACHINE_ARCH} \
 	${DIST}/mpf \
 	${DIST}/mpz
+
+# Don't warn about functions which cannot be stack smash protected as
+# there are a lot of them.
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
+COPTS += -Wno-stack-protector
+.endif

Reply via email to