3 ms·
LTO only works if you statically link against a LTO-enabled libc version. Of course you won't see any performance improvements if you only build your executabl
by cygx 15y ago
LTO only works if you statically link against a LTO-enabled libc version.
Of course you won't see any performance improvements if you only build your executable with LTO, but still link dynamically or statically against a non-LTO capable libc.
- simcop2387 15y agoOk, that's something I was unaware of. Makes me tempted to get a system setup to do a real test of it then. I had assumed that since the static libc is a copy of the object files going in that it would be able to do the LTO even at that stage. I don't think I want to play with getting my system built for doing LTO like that and risking instability on my main machine.