summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2010-03-20 16:36:35 +0000
committerskrll <skrll@NetBSD.org>2010-03-20 16:36:35 +0000
commit134b0fcc8fac30bc64701a0c257fc64b16a92f3d (patch)
treeab6a23c08db186ba8579c469999aafafb82d7068 /libexec
parenta48c6c7a118c427884de354446876d0216f67710 (diff)
Only apply -Wno-stack-protector where alloca is used.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile
index 5751dd92b3a..7694c87dd12 100644
--- a/libexec/ld.elf_so/Makefile
+++ b/libexec/ld.elf_so/Makefile
@@ -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 @@ DBG= -O3 -fomit-frame-pointer
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 @@ MAN= ld.elf_so.1
.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