[LLVMdev] Enabling the gold linker on freebsd

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jun 23 08:54:52 PDT 2015


> Rafael:
>
> Does -fuse-ld=gold cause Clang to look for ld.gold, or does it just cause
> Clang to pass the need command-line options to ld to get it to use the gold
> plugin?  Ideally, I'd like to not have to manually modify things in /usr/bin
> to get the Gold plugin working on FreeBSD.  I would think that it makes
> systems upgrades a nightmare.

It causes clang to use ld.gold:

$ clang test.o -o test.so -shared -fuse-ld=gold -v
...
 "/home/espindola/inst/binutils/bin/ld.gold" ....

Cheers,
Rafael



More information about the llvm-dev mailing list