[cfe-dev] clang++ invoking custom built gold
Rafael Avila de Espindola
rafael.espindola at gmail.com
Mon Mar 21 13:10:07 PDT 2011
On 11-03-21 04:05 PM, Giulio Eulisse wrote:
> Ciao,
>
>> You have to detect your distro and then pass the correct search
>> path to gold.
>
> I think I did not express myself well. We do not use the linker /
> compiler which comes from the distribution, but we have our own which
> can be even be user installed and which can be installed on a large
> variety of distributions (albeit we do have a reference one).
>
> Are you saying I should detect the location of the gold binary and
> work the needed paths from there? Would you accept in upstream a
> patch which does so?
Finding gold itself should not be a problem, we search the path
(starting with where clang is).
The problem you are having with crtbeginS.o not being found is because
the library path being passed to the linker being wrong, not the linker
not being found.
> Ciao, Giulio
>
Cheers,
Rafael
More information about the cfe-dev
mailing list