Dnia 2014-04-20, o godz. 21:14:51
Ryan Hill <rh...@gentoo.org> napisał(a):

> As more and more packages are starting to add LTO flags automatically through
> their build systems, I thought I'd point out a couple things:
> 
> - LTO utterly destroys debug info.  Flags like -g are incompatible with LTO.
> 
> - LTO causes .GCC.command.line sections to be discarded, which means your
>   package will always be QA flagged as ignoring CFLAGS.
> 
> - LTO takes a _lot_ of memory.  That memory is required on the host arch.
>   Distcc doesn't help things here, because linking happens locally.  Consider
>   all the archs your package is built on, and if they all routinely have
>   multiple GBs of memory installed.

Those are the reasons why I have disabled the default -flto in systemd.
For other packages based on systemd configure macros, it can be
disabled via the following configure hack:

  cc_cv_CFLAGS__flto=no

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: PGP signature

Reply via email to