svn commit: r455039 - head/Mk

Jan Beich jbeich at FreeBSD.org
Tue Nov 28 12:57:58 UTC 2017


Author: jbeich
Date: Tue Nov 28 12:57:57 2017
New Revision: 455039
URL: https://svnweb.freebsd.org/changeset/ports/455039

Log:
  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 at unislabs.com

Modified:
  head/Mk/bsd.gecko.mk   (contents, props changed)

Modified: head/Mk/bsd.gecko.mk
==============================================================================
--- head/Mk/bsd.gecko.mk	Tue Nov 28 11:52:52 2017	(r455038)
+++ head/Mk/bsd.gecko.mk	Tue Nov 28 12:57:57 2017	(r455039)
@@ -147,10 +147,12 @@ MOZ_PKGCONFIG_FILES?=	${MOZILLA}-gtkmozembed ${MOZILLA
 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


More information about the svn-ports-all mailing list