Arch Linux

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!
Tasklist

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
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

hi,

…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

Closed by  Allan McRae (Allan)
Monday, 30 May 2022, 22:13 GMT
Reason for closing:  Not a bug
Comment by loqs (loqs) - Monday, 30 May 2022, 14:35 GMT 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.

Loading...