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 Use the gcc directive to disable SSP warni...



details:   https://anonhg.NetBSD.org/src/rev/8ce9e09051bc
branches:  trunk
changeset: 753190:8ce9e09051bc
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Mar 19 20:53:50 2010 +0000

description:
Use the gcc directive to disable SSP warnings.

diffstat:

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

diffs (28 lines):

diff -r ce22dc963471 -r 8ce9e09051bc libexec/ld.elf_so/Makefile
--- a/libexec/ld.elf_so/Makefile        Fri Mar 19 20:31:50 2010 +0000
+++ b/libexec/ld.elf_so/Makefile        Fri Mar 19 20:53:50 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.94 2010/03/18 22:17:55 roy Exp $
+#      $NetBSD: Makefile,v 1.95 2010/03/19 20:53:50 roy Exp $
 #
 # NOTE: when changing ld.so, ensure that ldd still compiles.
 #
@@ -16,10 +16,6 @@
 .include <bsd.init.mk>                 # for OBJECT_FMT definition
 .include <bsd.shlib.mk>                        # for SHLINKINSTALLDIR definition
 
-# We use alloca
-USE_FORT=      no
-USE_SSP=       no
-
 .if defined(LDELFSO_MACHINE_CPU) && !empty(LDELFSO_MACHINE_CPU) && \
     exists(${.CURDIR}/arch/${LDELFSO_MACHINE_CPU})
 ARCHSUBDIR=    ${LDELFSO_MACHINE_CPU}
@@ -120,3 +116,7 @@
 
 .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