[cfe-dev] Adding -fuse-ld= support to clang
dimitry at andric.com
Sun May 19 05:19:40 PDT 2013
On May 18, 2013, at 23:39, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
> On 18 May 2013, at 11:59, Rafael Espíndola <rafael.espindola at gmail.com> wrote:
>> Looks fairly reasonable, but
>> * Instead of running touch, add the file to the install tree in svn.
>> * Test both ld.name and ld-name.
> Makes sense.
Note, gcc does not look for ld-gold or ld-bfd, only for ld.gold and ld.bfd.
>> * If there is both ld.name and ld-name, make sure and test we select
>> the same one as gcc.
> Can someone who doesn't mind going near GPLv3 code please tell me what GCC does in this case? I have only looked at the documentation. I believe that they just hard-code the names for ld.bfd and ld.gold, but I am not certain.
Yes, they search for linkers with suffix "ld", a configure time optional $PLUGIN_LD_SUFFIX, "ld.gold" and lastly "ld.bfd".
More information about the cfe-dev