Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/conf Make SPECTRE_V2_GCC_MITIGATION overridabl...



details:   https://anonhg.NetBSD.org/src/rev/2654f208ca70
branches:  trunk
changeset: 322128:2654f208ca70
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Apr 18 10:40:22 2018 +0000

description:
Make SPECTRE_V2_GCC_MITIGATION overridable at the make command line.

diffstat:

 sys/arch/i386/conf/Makefile.i386 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 34fc493a73be -r 2654f208ca70 sys/arch/i386/conf/Makefile.i386
--- a/sys/arch/i386/conf/Makefile.i386  Wed Apr 18 10:38:47 2018 +0000
+++ b/sys/arch/i386/conf/Makefile.i386  Wed Apr 18 10:40:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.i386,v 1.190 2018/04/07 19:38:06 mrg Exp $
+#      $NetBSD: Makefile.i386,v 1.191 2018/04/18 10:40:22 martin Exp $
 
 # Makefile for NetBSD
 #
@@ -39,7 +39,7 @@
 ## no-sse implies no-sse2 but not no-avx
 CFLAGS+=       -mno-mmx -mno-sse -mno-avx
 
-.if !empty(SPECTRE_V2_GCC_MITIGATION) && ${HAVE_GCC:U0} > 0
+.if ${SPECTRE_V2_GCC_MITIGATION:U0} > 0 && ${HAVE_GCC:U0} > 0
 CFLAGS+=       -mindirect-branch=thunk
 CFLAGS+=       -mindirect-branch-register
 .endif



Home | Main Index | Thread Index | Old Index