From 64d4a8a9b59ed79bc78658d7edf1bdd9bc4f084d Mon Sep 17 00:00:00 2001 From: Imre Kis Date: Tue, 19 Oct 2021 11:48:10 +0200 Subject: [PATCH 1/1] Allow aarch64-linux-gcc to compile bare metal lib Newlib build system determines the target (i.e. Linux, BSD, bare metal, etc.) according to the toolchain triplet. This patch changes the configure script to treat the aarch64-linux-gnu and the aarch64-linux-musl triplets as bare-metal compilers. Signed-off-by: Imre Kis Signed-off-by: Gyorgy Szing --- configure | 2 +- libgloss/aarch64/configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5db52701..1eb71a80 100755 --- a/configure +++ b/configure @@ -3659,7 +3659,7 @@ case "${target}" in *-*-freebsd*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) + *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; *-*-lynxos*) diff --git a/libgloss/aarch64/configure b/libgloss/aarch64/configure index b45256f3..25c9d5f7 100755 --- a/libgloss/aarch64/configure +++ b/libgloss/aarch64/configure @@ -2521,7 +2521,7 @@ test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS case "${target}" in - *-*-elf) + *-*-elf | *-linux-gnu | *-linux-musl) objtype=elf- ;; esac -- 2.17.1