Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#74907 - pacman/makepkg; add "-flto=auto" insead only "--flto"
Attached to Project:
Arch Linux
Opened by tom (brikler) - Monday, 30 May 2022, 13:18 GMT
Last edited by Allan McRae (Allan) - Monday, 30 May 2022, 22:13 GMT
Opened by tom (brikler) - Monday, 30 May 2022, 13:18 GMT
Last edited by Allan McRae (Allan) - Monday, 30 May 2022, 22:13 GMT
|
Detailshi,
…because, it can save a lot of build time :) ``` You can also specify -flto=jobserver to use GNU make’s job server mode to determine the number of parallel jobs. This is useful when the Makefile calling GCC is already executing in parallel. You must prepend a ‘+’ to the command recipe in the parent Makefile for this to work. This option likely only works if MAKE is GNU make. Even without the option value, GCC tries to automatically detect a running GNU make’s job server. Use -flto=auto to use GNU make’s job server, if available, or otherwise fall back to autodetection of the number of CPU threads present in your system. https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html ``` |
This task depends upon
Comment by loqs (loqs) -
Monday, 30 May 2022, 14:35 GMT
--flto should only be being used if LTOFLAGS is unset see https://github.com/archlinux/svntogit-packages/commit/366f9b4dc8e9af13501ff7cf45bff5918f75ea82
Comment by Allan McRae (Allan) -
Monday, 30 May 2022, 22:13 GMT
The default in makepkg is -flto due to some older compiler versions not supporting auto. Arch makepkg.conf set =auto.