Source-Changes-HG archive

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

[src/trunk]: src/libexec/ld.elf_so Only apply -Wno-stack-protector where allo...



details:   https://anonhg.NetBSD.org/src/rev/a89d083cd512
branches:  trunk
changeset: 753213:a89d083cd512
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 20 16:36:35 2010 +0000

description:
Only apply -Wno-stack-protector where alloca is used.

diffstat:

 libexec/ld.elf_so/Makefile |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 018bbc7381a3 -r a89d083cd512 libexec/ld.elf_so/Makefile
--- a/libexec/ld.elf_so/Makefile        Sat Mar 20 16:33:51 2010 +0000
+++ b/libexec/ld.elf_so/Makefile        Sat Mar 20 16:36:35 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.95 2010/03/19 20:53:50 roy Exp $
+#      $NetBSD: Makefile,v 1.96 2010/03/20 16:36:35 skrll Exp $
 #
 # NOTE: when changing ld.so, ensure that ldd still compiles.
 #
@@ -85,6 +85,10 @@
 CPPFLAGS+=     -DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\"
 .endif
 
+# rtld.c and symbol.c use alloca, so disable SSP warnings.
+COPTS.rtld.c+= -Wno-stack-protector
+COPTS.symbol.c+=-Wno-stack-protector
+
 LDADD+=                -L${CLIBOBJ} -L${DESTDIR}${LIBDIR}
 .if ${MKPICLIB} != "no"
 LDADD+=                -lc_pic
@@ -116,7 +120,3 @@
 
 .include <bsd.man.mk>
 .endif
-
-# We use alloca, so disable SSP warnings.
-# This has to come last in the CFLAGS ordering
-CFLAGS+=       -Wno-stack-protector



Home | Main Index | Thread Index | Old Index