From 6cd7838a0743d07896a4562dd186fa6b4f665af3 Mon Sep 17 00:00:00 2001 From: Edwin Lu Date: Wed, 15 Nov 2023 16:32:04 -0800 Subject: [PATCH] prevent multilib reports from failing with trailing ; in configure --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 27ecb14ee64..7d6bed09b0c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -63,7 +63,7 @@ ifeq ($(MULTILIB_GEN),) NEWLIB_MULTILIB_NAMES := @newlib_multilib_names@ GCC_MULTILIB_FLAGS := $(MULTILIB_FLAGS) else -NEWLIB_MULTILIB_NAMES := $(shell echo "$(MULTILIB_GEN)" | $(SED) 's/;/\n/g'| $(AWK) '{split($$0,a,"-"); printf "%s-%s ", a[1],a[2]}') +NEWLIB_MULTILIB_NAMES := $(shell echo "$(MULTILIB_GEN)" | $(SED) 's/;/\n/g' | $(SED) '/^$$/d' | $(AWK) '{split($$0,a,"-"); printf "%s-%s ", a[1],a[2]}') GCC_MULTILIB_FLAGS := $(MULTILIB_FLAGS) --with-multilib-generator="$(MULTILIB_GEN)" endif GLIBC_MULTILIB_NAMES := @glibc_multilib_names@