[Buildroot] [PATCH 1/2] package/rustc: prepare for musl-based platforms support
Yann E. MORIN
yann.morin.1998 at free.fr
Tue May 18 21:21:12 UTC 2021
Nathaniel, Thomas, All,
On 2021-05-18 22:54 +0200, Thomas Petazzoni spake thusly:
> From: Nathaniel Husted <nathaniel.husted at outlook.com>
>
> 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 <nathaniel.husted at outlook.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
This first patch: Applied to next, thanks.
Regards,
Yann E. MORIN.
> ---
> 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)
> --
> 2.31.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list