diff options
author | Deng Qingfang <dengqf6@mail2.sysu.edu.cn> | 2018-12-04 08:45:32 +0800 |
---|---|---|
committer | Deng Qingfang <dengqf6@mail2.sysu.edu.cn> | 2018-12-04 08:45:32 +0800 |
commit | 2d58169f1453886e4557ce28c29e32290de1bd97 (patch) | |
tree | 9c95fb0de700c67216b6567ca057ee1ef0b85d7e /net/aria2/Makefile | |
parent | bcb6fb3b7c17c6a8fd11112429923d5b64ad16ea (diff) |
aria2: size optimizations
Reduce binary size by about 22%
Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
Diffstat (limited to 'net/aria2/Makefile')
-rw-r--r-- | net/aria2/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/aria2/Makefile b/net/aria2/Makefile index 940855697..5955828c8 100644 --- a/net/aria2/Makefile +++ b/net/aria2/Makefile @@ -80,6 +80,9 @@ CONFIGURE_ARGS += \ --without-libuv \ --with-libz +TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto +TARGET_LDFLAGS += -Wl,--gc-sections -flto + define Package/aria2/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin |