aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2023-01-28 15:24:37 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-03-21 18:28:24 +0100
commit9ea7019ffd60ab3ef5a5654116fbc339f856482c (patch)
tree637b7f409612aa228caa7faa6f2003af3d5ff8c7 /config
parent1342afcd27ebc142caf859e3acb3671c0378dea0 (diff)
downloadupstream-9ea7019ffd60ab3ef5a5654116fbc339f856482c.tar.gz
upstream-9ea7019ffd60ab3ef5a5654116fbc339f856482c.tar.bz2
upstream-9ea7019ffd60ab3ef5a5654116fbc339f856482c.zip
build: add a config knob to enable LTO for all packages
This enables LTO for all packages which haven't opted-out. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/Config-build.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/Config-build.in b/config/Config-build.in
index f93ad37586..df2d9101ca 100644
--- a/config/Config-build.in
+++ b/config/Config-build.in
@@ -152,6 +152,13 @@ menu "Global build settings"
garbage collection capabilites.
Packages can choose to opt-out via setting PKG_BUILD_FLAGS:=no-gc-sections
+ config USE_LTO
+ bool
+ prompt "Use the link-time optimizer for all packages (EXPERIMENTAL)"
+ help
+ Adds LTO flags to the CFLAGS and LDFLAGS.
+ Packages can choose to opt-out via setting PKG_BUILD_FLAGS:=no-lto
+
config IPV6
def_bool y