git: 0c306f1cd9f8 - main - ftp/unftp: Fix biuild on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 09 Jul 2024 10:08:44 UTC
The branch main has been updated by yuri:

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

commit 0c306f1cd9f811fb54dda52d2ae6ab7c3aa899b2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-09 09:18:54 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-09 10:08:39 +0000

    ftp/unftp: Fix biuild on i386
    
    Reported by:    fallout
---
 ftp/unftp/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ftp/unftp/Makefile b/ftp/unftp/Makefile
index 97e6b4a321c0..0d1fd8612674 100644
--- a/ftp/unftp/Makefile
+++ b/ftp/unftp/Makefile
@@ -16,6 +16,8 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	bolcom
 GH_PROJECT=	unFTP
 
+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 \
 		aho-corasick-1.1.3 \