https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97304

--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #14)
> (In reply to Jonathan Wakely from comment #10)
> > If --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld is required then
> > it needs to be documented at
> > https://gcc.gnu.org/install/specific.html#x-x-freebsd
> 
> So what I think is happening is the ld (LLVM's lld) does not include
> /usr/lib by default in the library search path and gcc's driver does not
> pass -L/usr/lib -L/lib on to ld because it assumes all ld normally search
> there by default (which most unix ld did before lld and mold come around).
>

[...]

> I am suspect we might be able to remove this and it will work but there
> needs to be a lot of testing on many different targets and such.

A configure test, maybe?

Reply via email to