Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109662131
D31569.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
D31569.diff
View Options
diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -81,13 +81,13 @@
CARGO_ENV+= \
CARGO_HOME=${WRKDIR}/cargo-home \
CARGO_BUILD_JOBS=${MAKE_JOBS_NUMBER} \
+ CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET} \
CARGO_TARGET_DIR=${CARGO_TARGET_DIR} \
CARGO_TARGET_${CARGO_BUILD_TARGET:S/-/_/g:tu}_LINKER="${CC}" \
CARGO_TARGET_${CARGO_BUILD_TARGET:S/-/_/g:tu}_RUSTFLAGS="${LDFLAGS:C/.+/-C link-arg=&/}" \
RUST_BACKTRACE=1 \
RUSTC=${LOCALBASE}/bin/rustc \
- RUSTDOC=${LOCALBASE}/bin/rustdoc \
- RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:C/.+/-C link-arg=&/}"
+ RUSTDOC=${LOCALBASE}/bin/rustdoc
# Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk
.if ${ARCH} == amd64 || ${ARCH} == i386
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 2:12 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16540231
Default Alt Text
D31569.diff (758 B)
Attached To
Mode
D31569: Mk/Uses/cargo.mk: always pass --target
Attached
Detach File
Event Timeline
Log In to Comment