[systemd-devel] [PATCH] build-sys: add configure option to disable LTO/gold

Michael Biebl mbiebl at gmail.com
Wed Feb 18 15:48:21 PST 2015


2015-02-19 0:39 GMT+01:00 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>:
> On Wed, Feb 18, 2015 at 11:52:50PM +0100, Michael Biebl wrote:
>> 2015-02-18 20:34 GMT+01:00 Lennart Poettering <lennart at poettering.net>:
>> > Well, why patch anything? You already have a configure option, just by
>> > adding LDFLAGS= and CFLAGS= to the end of the configure line. What's
>> > the point of having an explicit option for that?
>>
>> What is the reason to override the default linker anyway? systemd
>> really shouldn't do that.
>
> To encourage the adoption of a more modern pipeline? The ./configure option
> to switch the linker is trivial, so I don't see why this is such an issue.

Are we going to enforce the use of LLVM next?
Really, the use choice of the  linker should be left to the ones
building the package, i.e. the distros in most cases.

Incidentally, we do have to remove the -Wl,-fuse-ld=gold line in
Debian as well, since gold is problematic/less mature on various
architectures.


Couldn't we just add -Wl,-fuse-ld=gold via LDFLAGS in autogen.sh?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list