git: a8ad8c925831 - 2024Q2 - net/narrowlink: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 03 May 2024 01:25:51 UTC
The branch 2024Q2 has been updated by yuri:

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

commit a8ad8c9258312501eb14eac17efecb99c542de51
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-03 01:25:04 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-03 01:25:44 +0000

    net/narrowlink: Fix build on i386
    
    PR:             fallout
    (cherry picked from commit abba588b7f67cebfe44961dd482071870b907eb2)
---
 net/narrowlink/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/narrowlink/Makefile b/net/narrowlink/Makefile
index d2e538b094c5..67b23a8eb8e9 100644
--- a/net/narrowlink/Makefile
+++ b/net/narrowlink/Makefile
@@ -16,6 +16,8 @@ USES=		cargo
 USE_RC_SUBR=	narrowlink-agent narrowlink-gateway
 USE_GITHUB=	yes
 
+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.21.0 \
 		adler-1.0.2 \
 		aead-0.5.2 \