Andre Heider 07730ff346
treewide: add support for "lto" in PKG_BUILD_FLAGS
This reduces open coding and allows to easily add a knob to enable
it treewide, where chosen packages can still opt-out via "no-lto".

Some packages used LTO, but not the linker plugin. This unifies 'em
all to attempt to produce better code.
Quoting man gcc(1):
"This improves the quality of optimization by exposing more code to the
link-time optimizer."

Also use -flto=auto instead of -flto=jobserver, as it's not guaranteed
that every buildsystem uses +$(MAKE) correctly.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-03-21 18:28:22 +01:00
..
2022-01-17 09:14:26 +01:00
2021-02-05 14:54:47 +01:00
2021-02-05 14:54:47 +01:00
2023-03-20 22:44:28 +01:00
2023-03-18 12:52:24 +01:00
2022-04-09 15:56:04 +02:00
2023-02-18 17:12:30 +01:00
2022-11-27 00:52:06 +01:00
2023-02-20 11:24:17 +01:00
2021-10-24 18:20:50 +02:00
2021-02-05 14:54:47 +01:00