[systemd-devel] [PATCH] build-sys: add configure option to disable LTO/gold
Lennart Poettering
lennart at poettering.net
Wed Feb 18 10:58:24 PST 2015
On Wed, 18.02.15 15:45, Cristian RodrÃguez (crrodriguez at opensuse.org) wrote:
> LTO may be unreliable, does not work properly in several archs
> It may crash or produce wrong code.
Well, that's something to fix in the LTO code.
> Compiler developers also said we should not provide production
> RPM packages with LTO enabled.
We have been doing that for a number of releases on Fedora. Seems to
work fine.
> GOLD also does not work everywhere.
Well, that's something to fix in gold.
What's wrong with adding
CFLAGS=-fno-lto LDFLAGS=-Wl,-fuse-ld=bfd
to the end of your configure line? That should be option enough...
The thing is that LTO is actually kinda important for us, since we
link so much stuff over and over again into many binaries.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list