aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.gecko.mk
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-11-28 20:57:57 +0800
committerjbeich <jbeich@FreeBSD.org>2017-11-28 20:57:57 +0800
commit647177949e87894090d815c477111c2f7b733638 (patch)
treeea96daab6e8dfbafe99f24165f351ea302f49d99 /Mk/bsd.gecko.mk
parent4b56d5efe534b2954947b1190633c6c72af8acdf (diff)
downloadfreebsd-ports-gnome-647177949e87894090d815c477111c2f7b733638.tar.gz
freebsd-ports-gnome-647177949e87894090d815c477111c2f7b733638.tar.zst
freebsd-ports-gnome-647177949e87894090d815c477111c2f7b733638.zip
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
Diffstat (limited to 'Mk/bsd.gecko.mk')
-rw-r--r--Mk/bsd.gecko.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk
index e4ded78f43de..9b337b478c47 100644
--- a/Mk/bsd.gecko.mk
+++ b/Mk/bsd.gecko.mk
@@ -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