rust: use TARGET_LINKER as linker

Signed-off-by: hingbong lo <hingbonglo@gmail.com>
This commit is contained in:
hingbong lo
2024-09-26 14:58:55 +00:00
committed by Tianling Shen
parent 24ab6e40dd
commit 77e9cd3989

View 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)