Skip to content

Commit

Permalink
fixed compile trojan problems on arm64 (coolsnowwolf#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiamadeus authored and coolsnowwolf committed Dec 6, 2019
1 parent bfb9971 commit af4697b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions package/lean/luci-app-ssr-plus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions package/lean/openssl1.1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down Expand Up @@ -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
Expand Down

0 comments on commit af4697b

Please sign in to comment.