git: 6c63325b0ac4 - main - net/wstunnel: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 31 Oct 2024 00:09:37 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6c63325b0ac45a1c6518ef8662d658b9b7ecfc5b

commit 6c63325b0ac45a1c6518ef8662d658b9b7ecfc5b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-30 23:16:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-31 00:09:31 +0000

    net/wstunnel: Fix build on i386
    
    Reported by:    fallout
---
 net/wstunnel/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/wstunnel/Makefile b/net/wstunnel/Makefile
index e704e2831cd4..3fa2462e0c25 100644
--- a/net/wstunnel/Makefile
+++ b/net/wstunnel/Makefile
@@ -15,6 +15,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	erebe
 
+RUSTFLAGS=	${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386
+
 CARGO_CRATES=	addr2line-0.24.2 \
 		adler2-2.0.0 \
 		ahash-0.8.11 \