You are not logged in.

#1 2021-01-11 16:59:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Inclusion of -flto to builds worth anything?

I am curious if we have an opinion as to the utility or not of compiling with lto enabled by default.  Lennart replied to someone who asked about compiling systemd with the switch to their ML earlier today which got me wondering: https://lists.freedesktop.org/archives/ … 45853.html

I did grep for '-flto' in Arch Dev Public but found nothing contemporary.

Searching for the same in either of our svntogit repos also showed only a handfull of PKGBUILDs containing it:
https://github.com/archlinux/svntogit-p … 27-flto%27
https://github.com/archlinux/svntogit-c … 27-flto%27

Last edited by graysky (2021-01-11 17:01:32)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2021-01-29 17:10:22

orangecake
Member
Registered: 2017-10-03
Posts: 5

Re: Inclusion of -flto to builds worth anything?

Ubuntu 21.01 is planning to enable LTO [1] (along others, Fedora and OpenSUSE).

[1] https://wiki.ubuntu.com/ToolChain/LTO

Offline

#3 2021-01-30 14:00:02

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,481
Website

Re: Inclusion of -flto to builds worth anything?

https://fedoraproject.org/wiki/LTOByDefault

Reading that, we would need to add stripping of the LTO bytecode from any installed .o/.a to makepkg, otherwise roughly good to go.

Offline

Board footer

Powered by FluxBB