Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2018 18:20:35 +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: r487455 - head/Mk/Uses
Message-ID:  <201812141820.wBEIKZHn013495@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Dec 14 18:20:35 2018
New Revision: 487455
URL: https://svnweb.freebsd.org/changeset/ports/487455

Log:
  USES=cargo to respect CC for linking
  
  Reported by:	tijl
  Approved by:	rust (tobik)
  Differential Revision:	https://reviews.freebsd.org/D18528

Modified:
  head/Mk/Uses/cargo.mk   (contents, props changed)

Modified: head/Mk/Uses/cargo.mk
==============================================================================
--- head/Mk/Uses/cargo.mk	Fri Dec 14 17:57:32 2018	(r487454)
+++ head/Mk/Uses/cargo.mk	Fri Dec 14 18:20:35 2018	(r487455)
@@ -68,7 +68,7 @@ CARGO_ENV+= \
 	CARGO_TARGET_DIR=${CARGO_TARGET_DIR} \
 	RUSTC=${LOCALBASE}/bin/rustc \
 	RUSTDOC=${LOCALBASE}/bin/rustdoc \
-	RUSTFLAGS="${RUSTFLAGS} ${LDFLAGS:S/^/-C link-arg=/}"
+	RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:S/^/-C link-arg=/}"
 
 # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk
 .if ${ARCH} == amd64 || ${ARCH} == i386



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