Module Name:    src
Committed By:   joerg
Date:           Sun May 22 20:49:16 UTC 2011

Modified Files:
        src/share/mk: bsd.sys.mk

Log Message:
Split SSP parameters on a per-compiler base


To generate a diff of this commit:
cvs rdiff -u -r1.195 -r1.196 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.195 src/share/mk/bsd.sys.mk:1.196
--- src/share/mk/bsd.sys.mk:1.195	Sun May 22 20:24:46 2011
+++ src/share/mk/bsd.sys.mk	Sun May 22 20:49:16 2011
@@ -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
 

Reply via email to