[llvm-dev] (Thin)LTO llvm build

Carsten Mattner via llvm-dev llvm-dev at lists.llvm.org
Sun Oct 2 08:52:00 PDT 2016


On Sun, Oct 2, 2016 at 5:45 PM, Xinliang David Li <xinliangli at gmail.com> wrote:
> bfd linker 2.26 works fine with LLVMgold.so.   As I mentioned in a previous
> email, 2.26 ar and ranlib also works fine as long as LLVMgold.so is put in a
> path binutils know about : $(bindir)/../lib/bfd-plugins/

I don't want to put a copy or symlink my user LLVMgold.so in
the system owned /usr.

My system has binutils 2.27.

AFAIU, if I explicitly tell cmake to use llvm-ar/llvm-ranlib, then it will
do the right thing for ThinLTO and make LLVMgold plugin will be
used.


More information about the llvm-dev mailing list