Link Time Optimization default value

@ed95 Do you know how to cope with the enabled Link Time Optimization to build a Release under Linux (Ubuntu 16.04)?

I’ve installed the dependencies as mentioned in the List of Juce dependencies under linux . Building is successful when LTO is disabled, but not when LTO is enabled:

ar: build/intermediate/Release/include_juce_audio_basics_8a4e984a.o: plugin needed to handle lto object
ar: build/intermediate/Release/include_juce_audio_formats_15f82001.o: plugin needed to handle lto object
...

I also tried to explicitly set the compiler with CXX, no success either

make CXX=clang++ CONFIG=Release

Here, gcc & g++ are v5.4.0, clang++ is v3.8.0, llvm-lto-3.8 is available.

1 Like