Disable SSP warnings (not SSP itself) for this library as their are too

many source files with functions that use variable sized arrays.
This commit is contained in:
tron 2011-07-18 16:55:49 +00:00
parent 412b8db41e
commit 7b580b1338
2 changed files with 14 additions and 3 deletions

View File

@ -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 @@ SRCS+= tal-reent.c
# 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 @@ LIBGMP_MACHINE_ARCH?=${MACHINE_ARCH}
${.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

View File

@ -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 @@ CLEANFILES+= mparam.h
.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