[systemd-devel] [PATCH] build-sys: do proper LTO with GCC without needing fat objects

Cristian Rodríguez crrodriguez at opensuse.org
Thu Jun 5 17:04:43 PDT 2014


El 05/06/14 17:49, Jan Alexander Steffens (heftig) escribió:
> commit 235c6e6 added `-ffat-lto-objects` in order to work around
> GCC 4.9's new default of disabling such objects.
> 
> However, this also means LTO doesn't optimize across static
> libraries — and never did so in the past, either.
> 
> Use the GCC wrappers for the binutils tools `nm`, `ranlib` and `ar`
> in order to resolve this dilemma and link-time optimize properly.
> ---

This will effectively break something else..namely when you use
versioned gcc executables (just like I do) this needs to be fixed in
libtool, not here, not -fat-lto-objects..etc..

That said, the chunk of the patch that modifies the Makefile.am is
correct and is needed anyway.



-- 
Cristian
"I don't know the key to success, but the key to failure is trying to
please everybody."


More information about the systemd-devel mailing list