[systemd-devel] Is LTO worth it?

Reindl Harald h.reindl at thelounge.net
Mon Jan 11 15:12:27 UTC 2021



Am 11.01.21 um 16:05 schrieb Michael Biebl:
> Am Mo., 11. Jan. 2021 um 15:42 Uhr schrieb Reindl Harald
> <h.reindl at thelounge.net>:
>> it shouldn't if properly used - means param with cpu-cores, just -flto
>> alone is terrible slow
>>
>> -flto=%(nproc)
>> %{__make} %{?_smp_mflags}
> 
> The package uses meson's -Db_lto=true

export LDFLAGS="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -pie %{optflags} 
-flto=%(nproc)"
%meson



More information about the systemd-devel mailing list