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.
This commit is contained in:
sthen
2024-10-08 20:23:23 +00:00
parent 25f14acfbc
commit a92abb5888
+5
View File
@@ -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' \