diff options
| author | martin <martin@NetBSD.org> | 2018-04-18 10:40:22 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2018-04-18 10:40:22 +0000 |
| commit | b7b84aa96320aebfceb397df725c07008337caec (patch) | |
| tree | d40d4effeb5a0823e3b8e6e7f6f295252acf9113 /sys | |
| parent | f16a35c1b77773a61ddb6abe332960f43096e826 (diff) | |
Make SPECTRE_V2_GCC_MITIGATION overridable at the make command line.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/i386/conf/Makefile.i386 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386 index 3cd22a450ff..1bb6bbedb7f 100644 --- a/sys/arch/i386/conf/Makefile.i386 +++ b/sys/arch/i386/conf/Makefile.i386 @@ -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 @@ CFLAGS+= -msoft-float ## 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 |
