PKG_CHECK_FORMAT_SECURITY: add a menuconfig option, disable by default
[openwrt/openwrt.git] / config / Config-build.in
index 371ae7632adf053023e1a5e55b7a543b8a441c86..02fe1367914ebad91d5417161c31d900f58d5aee 100644 (file)
@@ -93,6 +93,15 @@ menu "Global build settings"
 
                  If you are unsure, select N.
 
+       config PKG_CHECK_FORMAT_SECURITY
+               bool
+               prompt "Enable gcc format-security"
+               default n
+               help
+                 Add -Wformat -Werror=format-security to the CFLAGS
+                 You can disable this per package by adding
+                 PKG_CHECK_FORMAT_SECURITY:=0 in the package Makefile
+
        config PKG_BUILD_USE_JOBSERVER
                bool
                prompt "Use top-level make jobserver for packages"