1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

gecko: respect CPUTYPE for Rust code

After r454995 build may fail if SSE2 is only enabled for C/C++ code as
simd crate expects SSE2 based on MACHINE_CPU.

PR:		223415 223300
Reported by:	vvd@unislabs.com
This commit is contained in:
Jan Beich 2017-11-28 12:57:57 +00:00
parent a3ae87ee55
commit a62753b206
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455039

View File

@ -147,10 +147,12 @@ MOZ_PKGCONFIG_FILES?= ${MOZILLA}-gtkmozembed ${MOZILLA}-js \
ALL_TARGET?= build
MOZ_EXPORT+= ${CONFIGURE_ENV} \
RUSTFLAGS="${RUSTFLAGS}" \
PERL="${PERL}"
MOZ_OPTIONS+= --prefix="${PREFIX}"
MOZ_MK_OPTIONS+=MOZ_OBJDIR="${MOZ_OBJDIR}"
RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/}
LDFLAGS+= -Wl,--as-needed
.if ${MOZILLA_VER:R:R} < 55 && ${OPSYS} == FreeBSD && ${OSVERSION} < 1200032