mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
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:
@@ -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' \
|
||||
|
||||
Reference in New Issue
Block a user