git: fcccfcbf717c - 2025Q3 - Mk/Uses/cargo.mk: Fix incorrect linker argument in RUSTFLAGS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Aug 2025 15:21:00 UTC
The branch 2025Q3 has been updated by michaelo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fcccfcbf717c820006d77a2e854dd7a7c020d531
commit fcccfcbf717c820006d77a2e854dd7a7c020d531
Author: Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2025-08-07 19:18:19 +0000
Commit: Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2025-08-25 15:20:50 +0000
Mk/Uses/cargo.mk: Fix incorrect linker argument in RUSTFLAGS
According to the manpage of rustc(1) it is: link-args='-flag1 -flag2'
an 's' was missing.
Approved by: jrm (mentor), otis (mentor), mikael (rust maintainer)
MFH: 2025Q3
Differential Revision: https://reviews.freebsd.org/D51803
(cherry picked from commit fe640c9c7d636905b0d1aad6f5e66019fccfdad0)
---
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 19b0ac1e294e..5408fe59d1f4 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-arg=&/}"
+ RUSTFLAGS="${RUSTFLAGS} ${LDFLAGS:C/.+/-C link-args=&/}"
. if ${ARCH} != powerpc64le
CARGO_ENV+= RUST_BACKTRACE=1