[llvm-dev] how to avoid linking with libLTO?
Dominique Fober via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 6 04:13:47 PST 2018
Hi,
Is there a way to avoid linking with the dynamic LTO library.
I’m using llvm 5.0.0 on various platforms (linux, windows, macOS), this library is not required by my application and I keep having trouble with it. My project is cmake based and makes use of LLVMConfig.cmake or llvm-config output (depending on the platform - there is no LLVMConfig.cmake with the windows package).
On windows the LTO lib resolves to LTO-NOTFOUND, which obviously triggers an error at link time.
On linux and MacOS, everything runs smoothly up to the install step: then I get an "error while loading shared libraries libLTO (.dylib or .so)” when running my application. I’m actually linking with llvm installed within my $HOME hierarchy.
This library (useless in my case) unnecessarily complicates my life.
If there's a way not to link with LTO, I'm a taker.
Thanks in advance for your help.
—
Dominique
ps: why is it not available as a static library (that could be a solution too)
More information about the llvm-dev
mailing list