We intend to replace GNU ld with LLVM's lld, and on the path to there we'll experiment with having lld installed or linked as /usr/bin/ld. Thus, install GNU ld primarily as ld.bfd with an eye to making the ld link optional.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
looks good to me (in principle), and I like this approach. I'm not build system savvy so I'd like dim to sign-off this one.
Thanks!
Davide
Comment Actions
LGTM, though maybe add an entry to OptionalObsoleteFiles.inc? Is there something like this for binutils? :)
Comment Actions
It's already there:
OLD_FILES+=usr/bin/ld OLD_FILES+=usr/bin/ld.bfd
we'll need to adjust that later on though (once LLD makes it in) so that ld.bfd is removed in the .if ${MK_BINUTILS} == no case while ld is removed only if there's no linker (if both ${MK_BINUTILS} == no and ${MK_LLD} == no)