From aa69193dedfcdc86400a9389181b88d6868828b5 Mon Sep 17 00:00:00 2001 From: LGA1150 Date: Sun, 19 Apr 2020 09:53:44 +0800 Subject: [PATCH] shadowsocksr: size optimization --- package/lean/shadowsocksr-libev/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package/lean/shadowsocksr-libev/Makefile b/package/lean/shadowsocksr-libev/Makefile index 501638e03a..7437956a03 100644 --- a/package/lean/shadowsocksr-libev/Makefile +++ b/package/lean/shadowsocksr-libev/Makefile @@ -28,14 +28,17 @@ define Package/shadowsocksr-libev SUBMENU:=Web Servers/Proxies TITLE:=Lightweight Secured Socks5 Proxy URL:=https://github.com/shadowsocksrr/shadowsocksr-libev - DEPENDS:=+libopenssl +libpthread +libpcre +zlib + DEPENDS:=+libev +libsodium +libopenssl +libpthread +libpcre +libudns +zlib endef Package/shadowsocksr-libev-server = $(Package/shadowsocksr-libev) Package/shadowsocksr-libev-alt = $(Package/shadowsocksr-libev) Package/shadowsocksr-libev-ssr-local = $(Package/shadowsocksr-libev) -CONFIGURE_ARGS += --disable-documentation --disable-ssp --disable-assert +CONFIGURE_ARGS += --disable-documentation --disable-ssp --disable-assert \ + --enable-system-shared-lib + +TARGET_CFLAGS += -flto TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed define Package/shadowsocksr-libev/install