diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-07-11 18:55:02 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-07-13 17:22:53 +0200 |
commit | 07940acc341ee9bb2887359f193625e48f36207e (patch) | |
tree | 60579a14c6dd8089fc63a22d9280e4ee38fe7959 | |
parent | 8c11133c9de632dca69c8464f911d8e2716effe2 (diff) | |
download | upstream-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>
-rw-r--r-- | package/network/config/netifd/Makefile | 5 |
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 \ |