[llvm-dev] Problem with the way BUILD_SHARED_LIBS=ON handled in llvm 3.8

Chris Bieneman via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 19 09:18:39 PST 2016


The LLVM libraries are not API stable (especially not the ones you generate with BUILD_SHARED_LIBS). Those libraries are really not intended to ship. What are you trying to accomplish? Have you tried using libLTO or libLLVM? The later is generated with the option LLVM_BUILD_LLVM_DYLIB=On.

-Chris


> On Jan 18, 2016, at 3:25 AM, Ismail Donmez <ismail at i10z.com> wrote:
> 
> Hi,
> 
> For lllvm 3.7 and before BUILD_SHARED_LIBS=ON would produce versioned
> shared libs like
> 
> libLLVMLTO.so (symlink)
> libLLVMLTO.so.3.7 (symlink)
> libLLVMLTO.so.3.7.0 (real file)
> 
> now it just builds an unversioned libLLVMLTO.so file which I believe
> is a problem because when a program links to llvm it generates a
> runtime dependency on libLLVMLTO.so instead of libLLVMLTO.so.3.7.0
> which will break versioned dependencies.
> 
> Can we please get this behaviour back?
> 
> Thanks,
> ismail



More information about the llvm-dev mailing list