[systemd-devel] Is LTO worth it?

Reindl Harald h.reindl at thelounge.net
Mon Jan 11 14:42:12 UTC 2021



Am 11.01.21 um 15:34 schrieb Michael Biebl:
> we've been using LTO in the Debian build for as long as I can
> remember, but I begin to question whether that is a good idea.
> On Debian sid (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU
> Binutils for Debian) 2.35.1),
> an LTO build almost takes twice as long as a no-LTO build

it shouldn't if properly used - means param with cpu-cores, just -flto 
alone is terrible slow

-flto=%(nproc)
%{__make} %{?_smp_mflags}



More information about the systemd-devel mailing list