Re: https://github.com/llvm/llvm-project/pull/190596 updated the upstream to use ld.lld to avoid ${triple}-ld [replaced overly generic ${linker} reference]

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 12 Jun 2026 14:23:10 UTC
On 12 Jun 2026, at 16:12, Brooks Davis <brooks@FreeBSD.org> wrote:
> 
> On Wed, Jun 10, 2026 at 02:30:33PM -0700, Mark Millard wrote:
>> On 6/10/26 13:19, Mark Millard wrote:
>>> See: https://github.com/llvm/llvm-project/pull/190596
>>> 
>>> For reference:
>>> 
>>> QUOTE
>>> davidchisnall approved these changes on Apr 13
>>> . . .
>>> aokblast merged 3 commits into llvm:main from
>>> aokblast:toolchains/fbsd_default_lld on Apr 13
>>> END QUOTE
> 
> I wonder if we should backport this change to stable branches.  It would
> be nice not to have to block building devel/llvm* when binutils is
> installed.

Yeah, it's a common enough annoyance. If you install e.g. amd64-gcc*, you get amd64-binutils which installs /usr/local/bin/x86_64-unknown-freebsd16.0-ld, and that is then preferred over /usr/bin/ld.

-Dimitry