[llvm-dev] Creating and using "shared library" of LLVM IR

Rafael EspĂ­ndola via llvm-dev llvm-dev at lists.llvm.org
Fri May 13 11:27:58 PDT 2016

> I just want to avoid modifying the application's build system. If there's no
> other way, I could go in and change the build scripts, but I'd like to avoid
> doing that as much as possible.
> If you're doing LTO with shared library, usually you're still producing
> shared library that are not bitcode (i.e. the LTO is performed separately
> within the boundary of each library).

Correct. If you want code to be linked in the binary (lto or not) you
need to replace the shared library with a static one.


More information about the llvm-dev mailing list