git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
24ab6e4
)
rust: use `TARGET_LINKER` as linker
author
hingbong lo
<redacted>
Thu, 26 Sep 2024 14:58:55 +0000
(14:58 +0000)
committer
Tianling Shen
<redacted>
Sun, 29 Sep 2024 03:20:08 +0000
(11:20 +0800)
Signed-off-by: hingbong lo <redacted>
lang/rust/rust-values.mk
patch
|
blob
|
history
diff --git
a/lang/rust/rust-values.mk
b/lang/rust/rust-values.mk
index d423d0a87f2302e9c3cc0189f39dd8c5ccaa871c..035a4e07735e16dfd2a46240c9b282c56439982b 100644
(file)
--- a/
lang/rust/rust-values.mk
+++ b/
lang/rust/rust-values.mk
@@
-104,3
+104,5
@@
CARGO_PKG_CONFIG_VARS= \
TARGET_CFLAGS="$(TARGET_CFLAGS) $(RUSTC_CFLAGS)"
CARGO_PKG_PROFILE:=$(if $(CONFIG_DEBUG),dev,release)
+
+CARGO_RUSTFLAGS+=-Clink-arg=-fuse-ld=$(TARGET_LINKER)
git clone https://git.99rst.org/PROJECT