tags +upstream thanks Hello Török,
thanks for the report. * Török Edwin wrote on Thu, Mar 25, 2010 at 10:24:08PM CET: > Currently libtool strips -flto when called for linking which is wrong. > It should pass -flto to gcc, since its both a compile-time and a link-time > flag. I agree. There has been a similar request for another compiler recently, too, let's address them both, upstream. > Actually I don't know why libtool strips any flags at all. If I pass a flag > at compile time, and libtool happily passes it along (such as -flto here), > why does it strip it at link time? FWIW, libtool only strips flags when creating shared libraries, not when creating programs. Many flags need changed libtool semantics, when passed through. For example, just passing through -flto without further changes let me find one GCC bug and half a dozen Libtool testsuite failures and several places where libtool needs to be changed. It's simply more robust to strip unknown flags. > Can't it just pass ALL flags I've given it to gcc? No, see above. Cheers, Ralf -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

