[Buildroot] [git commit] package/rustc: prepare for musl-based platforms support

From: Yann E. MORIN <hidden>
Date: 2021-06-07 15:17:44
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=cf30776057ef137365a3b4701ab89ed29df578db
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The current rustc package only supports configurations based on glibc
and hardcodes this requirement. This patch prepares the addition of
support for musl-based platforms by using $(LIBC) instead of
hardcoding "gnu" as the C library specifier when defining
RUSTC_TARGET_NAME.

Signed-off-by: Nathaniel Husted <redacted>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <redacted>
---
 package/rustc/rustc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/rustc/rustc.mk b/package/rustc/rustc.mk
index 35ffc36106..52860b7eff 100644
--- a/package/rustc/rustc.mk
+++ b/package/rustc/rustc.mk
@@ -8,7 +8,7 @@ RUSTC_ARCH = $(call qstrip,$(BR2_PACKAGE_HOST_RUSTC_ARCH))
 RUSTC_ABI = $(call qstrip,$(BR2_PACKAGE_HOST_RUSTC_ABI))
 
 ifeq ($(BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS),y)
-RUSTC_TARGET_NAME = $(RUSTC_ARCH)-unknown-linux-gnu$(RUSTC_ABI)
+RUSTC_TARGET_NAME = $(RUSTC_ARCH)-unknown-linux-$(LIBC)$(RUSTC_ABI)
 endif
 
 ifeq ($(HOSTARCH),x86)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help