build: add -fno-plt to default cflags, it improves PIC code optimization
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 24 Jan 2016 00:16:36 +0000 (00:16 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 24 Jan 2016 00:16:36 +0000 (00:16 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48470 3c298f89-4303-0410-b956-a3cf2f4a3e73

config/Config-devel.in

index d096c18..5970ac2 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.