aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/netifd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-11 18:55:02 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-13 17:22:53 +0200
commit07940acc341ee9bb2887359f193625e48f36207e (patch)
tree60579a14c6dd8089fc63a22d9280e4ee38fe7959 /package/network/config/netifd
parent8c11133c9de632dca69c8464f911d8e2716effe2 (diff)
downloadupstream-07940acc341ee9bb2887359f193625e48f36207e.tar.gz
upstream-07940acc341ee9bb2887359f193625e48f36207e.tar.bz2
upstream-07940acc341ee9bb2887359f193625e48f36207e.zip
netifd: compile with LTO enabled
Reduces .ipk size from 65k to 63k on MIPS Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/config/netifd')
-rw-r--r--package/network/config/netifd/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/config/netifd/Makefile b/package/network/config/netifd/Makefile
index c18496c923..2eaf38d580 100644
--- a/package/network/config/netifd/Makefile
+++ b/package/network/config/netifd/Makefile
@@ -27,7 +27,10 @@ endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include/libnl-tiny \
- -I$(STAGING_DIR)/usr/include
+ -I$(STAGING_DIR)/usr/include \
+ -flto
+
+TARGET_LDFLAGS += -flto -fuse-linker-plugin
CMAKE_OPTIONS += \
-DLIBNL_LIBS=-lnl-tiny \