aboutsummaryrefslogtreecommitdiff
path: root/secure
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-07-15 03:06:08 +0000
committerWarner Losh <imp@FreeBSD.org>2021-07-21 16:16:32 +0000
commitee6908d78275449011f8fb1b6d73bde75c02f705 (patch)
treee6c79fa8dfccb501adc5807d48ab8fb50b7e1697 /secure
parent18b511454f779305f828b71ad5df69d1c1a3b3ba (diff)
downloadsrc-ee6908d78275449011f8fb1b6d73bde75c02f705.tar.gz
src-ee6908d78275449011f8fb1b6d73bde75c02f705.zip
loader: make sure CPUTYPE is ignored when building
CPUTYPE?=native causes -march=native to be added to the command line. When the host machine is haswell, this causes some versions of clang to generate code that can't execute in the efi boot loader environment. Set _CPUCFLAGS= to undo what's done bsd.cpu.mk. bsd.cpu.mk is included too early to control with NO_CPU_CFLAGS here. The only other option is to put that in all the Makefiles, and this is less tedious and error prone. PR: 194641 Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D31187 MFC After: 1 week (cherry picked from commit 7a0c0ff7ee25ff1efa3dbedcb20d2c80178639cc)
Diffstat (limited to 'secure')
0 files changed, 0 insertions, 0 deletions