Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Revert SSP changes because at least rmind@, pooka@ ...
details: https://anonhg.NetBSD.org/src/rev/94b229dea334
branches: trunk
changeset: 748975:94b229dea334
user: tron <tron%NetBSD.org@localhost>
date: Thu Nov 12 14:30:34 2009 +0000
description:
Revert SSP changes because at least rmind@, pooka@ and haad@ consider
5% more performance more important than the gain in security.
diffstat:
share/mk/bsd.sys.mk | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diffs (34 lines):
diff -r e30f88fafe53 -r 94b229dea334 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Thu Nov 12 13:22:34 2009 +0000
+++ b/share/mk/bsd.sys.mk Thu Nov 12 14:30:34 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.184 2009/11/12 13:22:34 tron Exp $
+# $NetBSD: bsd.sys.mk,v 1.185 2009/11/12 14:30:34 tron Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -59,13 +59,6 @@
HAS_SSP= yes
.endif
-.if ((${MACHINE_ARCH} == "amd64") || (${MACHINE_ARCH} == "i386")) && \
- defined(_SRC_TOP_) && (${_SRC_TOP_} != "")
-USE_SSP_DEFAULT?= yes
-.else
-USE_SSP_DEFAULT?= no
-.endif
-
.if defined(USE_FORT) && (${USE_FORT} != "no")
USE_SSP?= yes
.if !defined(KERNSRCDIR) && !defined(KERN) # not for kernels nor kern modules
@@ -73,9 +66,7 @@
.endif
.endif
-USE_SSP?= ${USE_SSP_DEFAULT}
-
-.if (${USE_SSP} != "no") && (${BINDIR:Ux} != "/usr/mdec")
+.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
.endif
Home |
Main Index |
Thread Index |
Old Index