[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool and LTO

From: Andi Kleen
Subject: libtool and LTO
Date: Mon, 4 Oct 2010 22:35:44 +0200
User-agent: Mutt/1.5.20 (2009-06-14)


I discovered that libtool breaks gcc LTO (link time optimization) 

The code needs to be generated at link time from the .o file
file, but libtool seems to call ld directly and then the LTO
code generation does not run (which needs linking through "gcc")

In normal gcc this still appears to work because the LTO .o files contain 
"fallback code" but of course you won't get any LTO optimizations.
It may also break in some special setups that don't have fallback code
in the object files.

Similar problems likely happen on other compilers with LTO support
(most self respecting optimizing compilers have it in some shape
these days)

Is there a solution or a workaround known?

I'm using libtool 2.2.6b


address@hidden -- Speaking for myself only.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]