git: fe640c9c7d63 - main - 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:20:23 UTC
The branch main has been updated by michaelo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fe640c9c7d636905b0d1aad6f5e66019fccfdad0
commit fe640c9c7d636905b0d1aad6f5e66019fccfdad0
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:16 +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
---
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 f5325f39afdb..bfa6442c29f8 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