From 11848e8b4309434786e95a289f37df309061fac4 Mon Sep 17 00:00:00 2001 From: lunatickochiya <55731491+lunatickochiya@users.noreply.github.com> Date: Tue, 28 Apr 2020 13:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=20shadowsocksr-libev=EF=BC=9Areduce=20file=20s?= =?UTF-8?q?ize=20(#4467)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 参数来源:https://github.com/openwrt/packages/commit/c54a826086092b9af17258355af465879dfc9acd#diff-517378957dd5ecc51358b1ae79836edb 经测试,对于ssr也可以优化 测试平台:ar71xx ramips --- package/lean/shadowsocksr-libev/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/lean/shadowsocksr-libev/Makefile b/package/lean/shadowsocksr-libev/Makefile index 885647991..501638e03 100644 --- a/package/lean/shadowsocksr-libev/Makefile +++ b/package/lean/shadowsocksr-libev/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=shadowsocksr-libev PKG_VERSION:=2.5.6 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/shadowsocksrr/shadowsocksr-libev @@ -36,6 +36,7 @@ Package/shadowsocksr-libev-alt = $(Package/shadowsocksr-libev) Package/shadowsocksr-libev-ssr-local = $(Package/shadowsocksr-libev) CONFIGURE_ARGS += --disable-documentation --disable-ssp --disable-assert +TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed define Package/shadowsocksr-libev/install $(INSTALL_DIR) $(1)/usr/bin