git: ab6160b7d2c1 - main - security/diswall: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 18 Jun 2024 09:25:11 UTC
The branch main has been updated by yuri:

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

commit ab6160b7d2c16ae5c5d73548633021c460da3adf
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-06-18 07:02:17 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-06-18 09:25:03 +0000

    security/diswall: Fix build on i386
---
 security/diswall/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/security/diswall/Makefile b/security/diswall/Makefile
index 783cc0329ece..a85480427b1b 100644
--- a/security/diswall/Makefile
+++ b/security/diswall/Makefile
@@ -18,6 +18,8 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	dis-works
 GH_PROJECT=	diswall-rs
 
+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=	adler-1.0.2 \
 		ahash-0.8.11 \
 		aho-corasick-1.1.3 \