rust: use `TARGET_LINKER` as linker
authorhingbong lo <redacted>
Thu, 26 Sep 2024 14:58:55 +0000 (14:58 +0000)
committerTianling Shen <redacted>
Sun, 29 Sep 2024 03:20:08 +0000 (11:20 +0800)
Signed-off-by: hingbong lo <redacted>
lang/rust/rust-values.mk

index d423d0a87f2302e9c3cc0189f39dd8c5ccaa871c..035a4e07735e16dfd2a46240c9b282c56439982b 100644 (file)
@@ -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