Page MenuHomeFreeBSD

Add -mno-relax to CFLAGS in bsd.prog/lib.mk instead of bsd.cpu.mk.
ClosedPublic

Authored by jhb on Jan 7 2020, 10:48 PM.

Details

Summary

bsd.cpu.mk is included by bsd.init.mk before bsd.linker.mk, so it
was always setting the flag since LINKER_FEATURES wasn't defined.

Reported by: mhorne

Test Plan
  • built and world + kernel with clang + lld and booted it in qemu

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb created this revision.Jan 7 2020, 10:48 PM
mhorne accepted this revision.Jan 8 2020, 4:58 PM
This revision is now accepted and ready to land.Jan 8 2020, 4:58 PM
imp accepted this revision.Jan 8 2020, 5:21 PM
This revision was automatically updated to reflect the committed changes.