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
..
2019-12-23 00:22:07 +01:00
2019-10-19 12:49:11 +02:00
2023-03-05 01:37:24 +01:00
2022-09-06 16:36:42 +01:00
2021-12-13 13:48:08 +01:00
2021-10-31 13:02:49 +00:00
2023-02-14 09:59:16 +01:00
2023-01-07 17:18:41 +01:00