Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Split SSP parameters on a per-compiler base
details: https://anonhg.NetBSD.org/src/rev/2adc5d857ac3
branches: trunk
changeset: 765226:2adc5d857ac3
user: joerg <joerg%NetBSD.org@localhost>
date: Sun May 22 20:49:16 2011 +0000
description:
Split SSP parameters on a per-compiler base
diffstat:
share/mk/bsd.sys.mk | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 2c41d7216eb8 -r 2adc5d857ac3 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Sun May 22 20:24:46 2011 +0000
+++ b/share/mk/bsd.sys.mk Sun May 22 20:49:16 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.195 2011/05/22 20:24:46 joerg Exp $
+# $NetBSD: bsd.sys.mk,v 1.196 2011/05/22 20:49:16 joerg Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -81,7 +81,9 @@
.if defined(USE_SSP) && (${USE_SSP} != "no") && (${BINDIR:Ux} != "/usr/mdec")
.if ${HAS_SSP} == "yes"
-COPTS+= -fstack-protector -Wstack-protector --param ssp-buffer-size=1
+COPTS+= -fstack-protector -Wstack-protector
+COPTS+= ${${ACTIVE_CC} == "clang":? -mllvm -stack-protector-buffer-size=1 :}
+COPTS+= ${${ACTIVE_CC} == "gcc":? --param ssp-buffer-size=1 :}
.endif
.endif
Home |
Main Index |
Thread Index |
Old Index