Page MenuHomeFreeBSD

Rework how the ld link is handled in WORLDTMP from r322811.
ClosedPublic

Authored by bdrewery on Jun 15 2018, 10:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:10 PM
Unknown Object (File)
Nov 22 2024, 2:09 AM
Unknown Object (File)
Nov 22 2024, 2:09 AM
Unknown Object (File)
Nov 22 2024, 2:09 AM
Subscribers

Details

Summary

LLD_BOOTSTRAP (build) is independent of LLD_IS_LD (installed) so they
should not be based on each other.

This is related to upcoming WITH_SYSTEM_LINKER work.

Sponsored by: Dell EMC

Test Plan

Did various WITHOUT_LLD and WITHOUT_LLD_IS_LD tests (with WITH_LLD_BOOTSTRAP set)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gnu/usr.bin/binutils/ld/Makefile
11 ↗(On Diff #43854)

This is not strictly needed for make buildworld but DIRDEPS_BUILD actually will complain if 2 ld.1 files get installed.

usr.bin/clang/lld/Makefile
12 ↗(On Diff #43854)

We really need some documentation for the magic TOOLS_PREFIX tests

usr.bin/clang/lld/Makefile
12 ↗(On Diff #43854)

All it really means is that it is in the 'cross-tools' phase of buildworld and is building a cross-toolchain for the build only.

usr.bin/clang/lld/Makefile
12 ↗(On Diff #43854)

Doesn't this one need (!defined(TOOLS_PREFIX && ...) || (defined(TOOLS_PREFIX) && ...) like the other case?

Reduce duplicated logic and add missing check on TOOLS_PREFIX.

This revision is now accepted and ready to land.Jun 19 2018, 2:27 AM
This revision was automatically updated to reflect the committed changes.