aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig/Makefile
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-10-27 22:35:30 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2019-11-08 23:57:53 +0100
commite926681387891fe9af89d884ebc3dce4c8c7f450 (patch)
tree978e67b1a121e0be8c54fd7b677cf2186652d4a8 /package/network/config/swconfig/Makefile
parent1eb34b7287ed97ad1e2ae60a436babbb5c68076f (diff)
downloadupstream-e926681387891fe9af89d884ebc3dce4c8c7f450.tar.gz
upstream-e926681387891fe9af89d884ebc3dce4c8c7f450.tar.bz2
upstream-e926681387891fe9af89d884ebc3dce4c8c7f450.zip
swconfig: Activate LTO compile option
This decreases the size of the swconfig application by 25% on MIPS BE. old: 16,916 /sbin/swconfig new: 12,565 /sbin/swconfig Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/network/config/swconfig/Makefile')
-rw-r--r--package/network/config/swconfig/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/config/swconfig/Makefile b/package/network/config/swconfig/Makefile
index 8b1d6cd64a..4d3e572d82 100644
--- a/package/network/config/swconfig/Makefile
+++ b/package/network/config/swconfig/Makefile
@@ -23,6 +23,9 @@ define Package/swconfig
TITLE:=Switch configuration utility
endef
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -flto=jobserver
+
TARGET_CPPFLAGS := \
-D_GNU_SOURCE \
-I$(STAGING_DIR)/usr/include/libnl-tiny \