From af4697b55ce7ab4519a12bb715e5d70d5ab83ed1 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Fri, 6 Dec 2019 21:02:45 +0800 Subject: [PATCH] fixed compile trojan problems on arm64 (#2313) --- package/lean/luci-app-ssr-plus/Makefile | 4 ---- package/lean/openssl1.1/Makefile | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package/lean/luci-app-ssr-plus/Makefile b/package/lean/luci-app-ssr-plus/Makefile index a6f6b276c4..3a1512216b 100644 --- a/package/lean/luci-app-ssr-plus/Makefile +++ b/package/lean/luci-app-ssr-plus/Makefile @@ -26,10 +26,6 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan bool "Include Trojan" default y if x86_64 -config PACKAGE_$(PKG_NAME)_INCLUDE_V2ray - bool "Include V2ray" - default y if x86_64 - config PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun bool "Include Kcptun" default n diff --git a/package/lean/openssl1.1/Makefile b/package/lean/openssl1.1/Makefile index cb731e4efa..2197b2210b 100644 --- a/package/lean/openssl1.1/Makefile +++ b/package/lean/openssl1.1/Makefile @@ -92,7 +92,7 @@ OPENSSL_OPTIONS += no-whirlpool OPENSSL_OPTIONS += no-deprecated -TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3 +TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O0 -g3 @@ -120,7 +120,8 @@ define Build/Configure endef -TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections +#$(FPIC) +TARGET_CFLAGS += -ffunction-sections -fdata-sections TARGET_LDFLAGS += -Wl,--gc-sections define Build/Compile