mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
aria2: size optimizations
Reduce binary size by about 22% Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user