Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3 Disable SSP warnings (not SSP itself) for thi...
details: https://anonhg.NetBSD.org/src/rev/a379ed0e68ce
branches: trunk
changeset: 767434:a379ed0e68ce
user: tron <tron%NetBSD.org@localhost>
date: Mon Jul 18 16:55:49 2011 +0000
description:
Disable SSP warnings (not SSP itself) for this library as their are too
many source files with functions that use variable sized arrays.
diffstat:
external/lgpl3/gmp/lib/libgmp/Makefile | 9 +++++++--
external/lgpl3/mpfr/lib/libmpfr/Makefile | 8 +++++++-
2 files changed, 14 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r e888efedea05 -r a379ed0e68ce external/lgpl3/gmp/lib/libgmp/Makefile
--- a/external/lgpl3/gmp/lib/libgmp/Makefile Mon Jul 18 15:44:17 2011 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/Makefile Mon Jul 18 16:55:49 2011 +0000
@@ -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
diff -r e888efedea05 -r a379ed0e68ce external/lgpl3/mpfr/lib/libmpfr/Makefile
--- a/external/lgpl3/mpfr/lib/libmpfr/Makefile Mon Jul 18 15:44:17 2011 +0000
+++ b/external/lgpl3/mpfr/lib/libmpfr/Makefile Mon Jul 18 16:55:49 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2011/07/06 19:52:06 drochner Exp $
+# $NetBSD: Makefile,v 1.7 2011/07/18 17:01:04 tron Exp $
.include <bsd.init.mk>
@@ -513,3 +513,9 @@
.if ${LIBMPFR_MACHINE_ARCH} == "vax"
COPTS.set_ld.c+= -Wno-error
.endif
+
+# 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
Home |
Main Index |
Thread Index |
Old Index