From a92abb58889ff99ea48eabaacc092ceb0736752b Mon Sep 17 00:00:00 2001 From: sthen Date: Tue, 8 Oct 2024 20:23:23 +0000 Subject: [PATCH] productivity/railway: set -Ctarget-cpu=pentium4 on i386, this uses rust-ring which needs SSE2, but doesn't use much of cargo.port.mk infrastructure so it doesn't get added automatically. --- productivity/railway/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/productivity/railway/Makefile b/productivity/railway/Makefile index 8b9108f878d..6f8d4b245ab 100644 --- a/productivity/railway/Makefile +++ b/productivity/railway/Makefile @@ -29,6 +29,11 @@ WANTLIB += gtk-4 intl m pango-1.0 MAKE_ENV= GETTEXT_DIR=${LOCALBASE} \ CARGO_BUILD_JOBS=${MAKE_JOBS} +.if ${MACHINE_ARCH:Mi386} +# Ring requires SSE2 on i386 +MAKE_ENV+= RUSTFLAGS="-Ctarget-cpu=pentium4" +.endif + pre-configure: mkdir -p ${WRKBUILD}/.cargo sed -e 's,directory = .*",directory = "${WRKSRC}/vendor",g' \