[PATCH] D23754: cmake: Add CLANG_GOLD_LIBDIR_SUFFIX to specify loc of LLVMgold.so

Michał Górny via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 26 23:45:41 PDT 2016


mgorny added a comment.

In https://reviews.llvm.org/D23754#580441, @chandlerc wrote:

> In https://reviews.llvm.org/D23754#580277, @mgorny wrote:
>
> > The difference is that LLVMgold.so is not used by LLVM or clang directly but by the system binutils, and so it must match the ABI of the linker. If you have 32-bit libclang*, LLVM_LIBDIR_SUFFIX is 32 but ld is still a 64-bit executable that needs 64-bit LLVMgold.so.
>
>
> But how does that work? The LLVM libraries linked into LLVMgold.so can't be 32-bit if it is loaded into a 64-bit binutils.


Just to be clear, the suffix I'm talking about is used only in Driver to specify location of LLVMgold.so. The file is a part of a separate 64-bit install of LLVM (+ clang) which obviously has all the necessary 64-bit libraries.


https://reviews.llvm.org/D23754





More information about the cfe-commits mailing list