From b69d2ac5bd0ef33216f33840516d720fbf968b2d Mon Sep 17 00:00:00 2001 From: z826540272 <56025847+z826540272@users.noreply.github.com> Date: Sun, 25 Apr 2021 19:36:27 +0800 Subject: [PATCH] shadowsocksr-libev: Reduce file size --- shadowsocksr-libev/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadowsocksr-libev/Makefile b/shadowsocksr-libev/Makefile index d32381c..2b715fd 100644 --- a/shadowsocksr-libev/Makefile +++ b/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