Page MenuHomeFreeBSD

loader: make sure CPUTYPE is ignored when building
ClosedPublic

Authored by imp on Jul 15 2021, 2:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 9:23 PM
Unknown Object (File)
Mar 11 2024, 9:17 AM
Unknown Object (File)
Mar 11 2024, 9:17 AM
Unknown Object (File)
Mar 11 2024, 9:04 AM
Unknown Object (File)
Mar 7 2024, 11:10 PM
Unknown Object (File)
Feb 19 2024, 10:10 PM
Unknown Object (File)
Feb 10 2024, 9:38 PM
Unknown Object (File)
Jan 14 2024, 9:09 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40480
Build 37369: arc lint + arc unit