[llvm-commits] [llvm] r63755 - /llvm/trunk/tools/gold/README.txt

Torok Edwin edwintorok at gmail.com
Wed Feb 4 11:12:26 PST 2009


Author: edwin
Date: Wed Feb  4 13:12:25 2009
New Revision: 63755

URL: http://llvm.org/viewvc/llvm-project?rev=63755&view=rev
Log:
mention that PIC is needed for libLTO and libLLVMgold

Modified:
    llvm/trunk/tools/gold/README.txt

Modified: llvm/trunk/tools/gold/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/README.txt?rev=63755&r1=63754&r2=63755&view=diff

==============================================================================
--- llvm/trunk/tools/gold/README.txt (original)
+++ llvm/trunk/tools/gold/README.txt Wed Feb  4 13:12:25 2009
@@ -13,5 +13,9 @@
 Then build binutils with "make all-gold".
 
 To build the LLVMgold plugin, configure LLVM with the option
---with-binutils-include=/path/to/binutils/src/include/ . To use the
+--with-binutils-include=/path/to/binutils/src/include/ --enable-pic. To use the
 plugin, run "ld-new --plugin /path/to/libLLVMgold.so".
+Without PIC libLTO and libLLVMgold are not being built (because they would fail
+link on x86-64 with a relocation error: PIC and non-PIC can't be combined).
+As an alternative to passing --enable-pic, you can use 'make ENABLE_PIC=1' in
+your entire LLVM build.





More information about the llvm-commits mailing list