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.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 26, 6:32 PM
Unknown Object (File)
Wed, Sep 23, 5:57 AM
Unknown Object (File)
Thu, Sep 17, 8:44 AM
Unknown Object (File)
Thu, Sep 10, 4:23 PM
Unknown Object (File)
Sep 7 2026, 2:59 PM
Unknown Object (File)
Sep 7 2026, 1:36 PM
Unknown Object (File)
Sep 5 2026, 2:06 PM
Unknown Object (File)
Sep 5 2026, 6:12 AM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable