fixed compile trojan problems on arm64 (#2313)

This commit is contained in:
AmadeusGhost 2019-12-06 21:02:45 +08:00 committed by coolsnowwolf
parent bfb99715e5
commit af4697b55c
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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