Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2017 12:57:57 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455039 - head/Mk
Message-ID:  <201711281257.vASCvvUq071764@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711281257.vASCvvUq071764>