git: 0ab0b75c82df - main - Mk/Uses/cargo.mk: Define ar and linker in RUSTFLAGS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 31 Aug 2025 21:07:35 UTC
The branch main has been updated by michaelo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0ab0b75c82df52500651fa935fff521d70160ff0
commit 0ab0b75c82df52500651fa935fff521d70160ff0
Author: Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2024-11-29 11:56:23 +0000
Commit: Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2025-08-31 21:07:13 +0000
Mk/Uses/cargo.mk: Define ar and linker in RUSTFLAGS
Otherwise base system ar and cc are always used.
PR: 283529
Approved by: jrm (mentor), otis (mentor), mikael (rust maintainer)
MFH: 2025Q3
Differential Revision: https://reviews.freebsd.org/D51804
---
Mk/Uses/cargo.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index bfa6442c29f8..cd3ad1d3f8e7 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -128,7 +128,7 @@ CARGO_ENV+= \
CARGO_TARGET_DIR=${CARGO_TARGET_DIR} \
RUSTC=${RUSTC} \
RUSTDOC=${RUSTDOC} \
- RUSTFLAGS="${RUSTFLAGS} ${LDFLAGS:C/.+/-C link-args=&/}"
+ RUSTFLAGS="${RUSTFLAGS} -C ar=${AR} -C linker=${CC} ${LDFLAGS:C/.+/-C link-args=&/}"
. if ${ARCH} != powerpc64le
CARGO_ENV+= RUST_BACKTRACE=1