[cfe-dev] Why do we static link all llvm libraries in every executable?

Yin Ma via cfe-dev cfe-dev at lists.llvm.org
Mon Jan 25 10:13:35 PST 2016


Hi 

 

I found basically all llvm libraries are statically linked into each
executable and LLVMgold.so,

This make the clang/llvm package larger and larger with a lot of duplicated
code. If I build

debug version, the disk space required is even larger. Is there any
particular reason to keep 

doing this way? If we separate several shared libraries something like
libclang.so, libllvm.so 

and let all executables and llvmgold.so just linked with .so. A lot of space
could be saved and

loading performance could be improved. 

 

Yin 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160125/8b67a8b8/attachment.html>


More information about the cfe-dev mailing list