> On 11/19/2013 02:54 PM, Jan Hubicka wrote: > > >The problem is that you have .a library consisting of slim LTO objects and > >you link > >with it during configure check without -flto. > > On the other hand, many configure checks will never work reliably > with -flto because they rely heavily on the fact that GCC cannot see > across translation units and spot crass declaration/definition > mismatches.
Hmm, you are right. Probably -fuse-linker-plugin is most sensible solution here (though it sucks). I wonder what people would think about enabling plugin by default for 4.9 and teaching it to do nothing without -flto on fat objects? Honza