build: add -fno-plt to default cflags, it improves PIC code optimization
[openwrt/staging/chunkeey.git] / config / Config-devel.in
index 45a7fd93f4eece93b860a44ee79171e7094fecda..5970ac238d318f1d8a1c60afcb25f650d6870af9 100644 (file)
@@ -27,7 +27,7 @@ menuconfig DEVEL
                  If not set then defaults to './dl', which is removed by operations such as
                  'git clean -xdf' or 'make distclean'.
                  This option is useful if you have a low bandwidth Internet connection, and by
-                 setting a path outside the OpenWRT tree downloads will be saved.
+                 setting a path outside the OpenWrt tree downloads will be saved.
 
        config LOCALMIRROR
                string "Local mirror for source packages" if DEVEL
@@ -106,6 +106,7 @@ menuconfig DEVEL
 
        config EXTRA_OPTIMIZATION
                string "Additional compiler options" if DEVEL
+               default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN
                default "-fno-caller-saves"
                help
                  Extra target-independent optimizations to use when building for the target.