[Bug general/24498] 0.176: isn't LTO ready

kloczko.tomasz at gmail dot com sourceware-bugzilla@sourceware.org
Wed Apr 15 07:03:26 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=24498

--- Comment #10 from kloczek <kloczko.tomasz at gmail dot com> ---
> I would add a configure option --enable-lto that will append -flto to {C,LD}FLAGS.

Please don't do that.

LTO can be driven using only env variable.

% CFLAGS="<clto_cflags>" LDFLAGS="<lto_ldflags>" ./configure

Please use KISS principle and do not implement something which can be already
done other way *without* touching existing code.

PS. Changing {C,LD}FLAGS is not only part of using LTO. You need to pass NM,
RANLIB and AR env variables.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list