From 31dbaed7a3bee3de038b03002620c4e0dd156093 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sat, 22 Jun 2024 08:29:05 +0200 Subject: [PATCH] Fix Shadowsocks-Rust build on x86 --- shadowsocks-rust/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shadowsocks-rust/Makefile b/shadowsocks-rust/Makefile index 6a528fb25..3b5c1fe6d 100644 --- a/shadowsocks-rust/Makefile +++ b/shadowsocks-rust/Makefile @@ -37,6 +37,9 @@ RUST_PKG_FEATURES:=local-redir include $(INCLUDE_DIR)/package.mk include $(TOPDIR)/feeds/openmptcprouter/rust/rust-package.mk +ifeq ($(ARCH),i386) + RUSTC_LDFLAGS+=-C target-feature=+sse2 +endif define Package/shadowsocks-rust/Default define Package/shadowsocks-rust-$(1)