Binutils Building
Download binutils source code
1 | git clone --depth 1 git://sourceware.org/git/binutils-gdb.git binutils |
Build binutils
1 | mkdir build |
LLVMgold.so build
Download LLVM source code
1 | https://github.com/llvm-mirror/llvm.git |
Build LLVM with gold-plugin
1 | mkdir build |
And the LLVMgold.so will appear in the lib folder.
Copy
1 | sudo cp lib/LLVMgold.so /usr/local/lib |