[LLVMdev] llvm-gcc with static libraries

Eli Friedman eli.friedman at gmail.com
Tue Aug 9 12:12:07 PDT 2011


On Tue, Aug 9, 2011 at 12:03 PM, Ashay Rane <ashay.rane at asu.edu> wrote:
> `/usr/bin/ld -v' says it is not running gold and I suppose fixing that would
> require place LLVMgold.so into /usr/lib/bfd-plugins. Is there any way to
> make this work without requiring root access to the machine?

If you install your own version of binutils into the same prefix as llvm-gcc,
it should get used instead of the one in /usr/bin/.

> Also, just to confirm, is the gold plugin required even when all of the
> files have been compiled/built using llvm-gcc and llvm-ar?

You can try llvm-ld... it isn't a fully general linker, but it might
be good enough for your purposes.

-Eli



More information about the llvm-dev mailing list