[LLVMdev] gold plugin use
Swarup Kumar Sahoo
ssahoo2 at illinois.edu
Thu Mar 11 09:15:42 PST 2010
>
>>
>I don't believe that llvm-gcc is used to execute the ar command. Having
>read everyone's input, I believe the problem stems from the fact that
>your llvmGold.so is not in a directory in which ar searches for plugins
>by default, *and* the Makefiles aren't passing the --plugin option to
>ar, so ar never loads llvmGold.so and cannot link LLVM bitcode files.
>
>The solution is to either convince the software's build system to run ar
>with the --plugin option (you can set the AR environment variable before
>running configure to do this) or place llvmGold.so in the bfd-plugins
>directory as Rafael suggests (which will cause ar to load it whenever it
>is run).
ok, now it works when I manually created the bfd-plugins directory and put the plugin there. I think, we can change the documentation to make this clear.
Thanks,
Swarup.
*************************************
Swarup Kumar Sahoo
Thomas M. Siebel Center for Computer Science
University of Illinois at Urbana Champaign
201 N Goodwin Avenue
Urbana, IL-61801
Phone - 614 264 9574
More information about the llvm-dev
mailing list