git: abba588b7f67 - main - net/narrowlink: Fix build on i386

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

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

commit abba588b7f67cebfe44961dd482071870b907eb2
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:04 +0000

    net/narrowlink: Fix build on i386
    
    PR:             fallout
---
 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 \