build: add a config knob to enable gc-sections for all packages
[openwrt/staging/nbd.git] / config / Config-build.in
index 8c81ef654cfe6021a0f5e1e5af943221b5632c05..f93ad37586c5a4c0339fe4e43159344d594f6e23 100644 (file)
@@ -144,6 +144,14 @@ menu "Global build settings"
                help
                  Adds -g3 to the CFLAGS.
 
+       config USE_GC_SECTIONS
+               bool
+               prompt "Dead code and data elimination for all packages (EXPERIMENTAL)"
+               help
+                 Places functions and data items into its own sections to use the linker's
+                 garbage collection capabilites.
+                 Packages can choose to opt-out via setting PKG_BUILD_FLAGS:=no-gc-sections
+
        config IPV6
                def_bool y