build: add -fno-plt to default cflags, it improves PIC code optimization
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jan 2016 00:16:36 +0000 (00:16 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jan 2016 00:16:36 +0000 (00:16 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48470

config/Config-devel.in

index d096c18a723d2bfd07b04faa0f9fab31cfbf970a..5970ac238d318f1d8a1c60afcb25f650d6870af9 100644 (file)
@@ -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.