Ubuntu 21.04 will enable LTO optimization for its packages
On architectures where LTO is disabled, it can be enabled in the rules file by
-
export DEB_BUILD_MAINT_OPTIONS=optimize=+lto
It can be disabled by
-
export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
First test rebuild (using GCC 9):
-
https://people.canonical.com/~doko/ftbfs-report/test-rebuild-20190906-eoan.html
-
https://people.canonical.com/~doko/ftbfs-report/test-rebuild-20190906-lto-eoan.html
Second test rebuild (using GCC 10):
-
https://people.canonical.com/~doko/ftbfs-report/test-rebuild-20201216-hirsute-hirsute.html
-
https://people.canonical.com/~doko/ftbfs-report/test-rebuild-20201216-hirsute-lto-hirsute.html