<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><div>I installed LLVM gold plugin and can ran the example in <a href="http://llvm.org/docs/GoldPlugin.html#example1" target="_top" rel="nofollow">http://llvm.org/docs/GoldPlugin.html#example1</a>.
<br><br>Then I tried to use it to build a big project. I set the environment variables like:
<br>export CC="/usr/local/bin/clang -use-gold-plugin -Wl, -plugin-opt=also-emit-llvm"
<br>export CXX="/usr/local/bin/clang++ -use-gold-plugin -Wl, -plugin-opt=also-emit-llvm"
<br>export AR="/usr/bin/ar"
<br>export NM="/usr/bin/nm"
<br>export RANLIB=/bin/true #ranlib is not needed, and doesn't support .bc files in .a
<br>export CFLAGS="-O4"
<br><br>==========================
<br>Then I ran configure and make but got the following errors:
<br>clang: warning: -Wl,: 'linker' input unused when '-c' is present
<br>clang: warning: argument unused during compilation: '-plugin-opt=also-emit-llvm'
<br>  CXX(target) llvm/Debug/obj.target/base/base/base64.o
<br>clang: warning: -Wl,: 'linker' input unused when '-c' is present
<br>clang: warning: argument unused during compilation: '-plugin-opt=also-emit-llvm'
<br>  CXX(target) llvm/Debug/obj.target/base/base/event_recorder_stubs.o
<br>clang: warning: -Wl,: 'linker' input unused when '-c' is present
<br>clang: warning: argument unused during compilation: '-plugin-opt=also-emit-llvm'
<br>  CXX(target) llvm/Debug/obj.target/base/base/file_descriptor_shuffle.o
<br><br><br>Do you know how I can solve this problem? Thanks in advance.</div>
</div></div></body></html>