mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 10:13:13 +00:00
mention that PIC is needed for libLTO and libLLVMgold
llvm-svn: 63755
This commit is contained in:
parent
feb6b56242
commit
04de24510f
@ -13,5 +13,9 @@ there configure binutils with "../src/configure --enable-gold --enable-plugins".
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user