From: H.J. Lu Date: Thu, 30 Oct 2025 23:29:45 +0000 (+0800) Subject: Build programs in $(others-noinstall) like tests if libgcc_s is available X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b93632ede79eb4630f8637e90e9ab1750829358f;p=thirdparty%2Fglibc.git Build programs in $(others-noinstall) like tests if libgcc_s is available Build programs in $(others-noinstall) like tests only if libgcc_s is available. Otherwise, "build-many-glibcs.py compilers" will fail to build the initial glibc with the initial limited gcc due to the missing libgcc_s. Signed-off-by: H.J. Lu --- diff --git a/Rules b/Rules index 7f6d063673..dd319e8013 100644 --- a/Rules +++ b/Rules @@ -195,10 +195,17 @@ xtests: > $(objpfx)subdir-xtests.sum ifeq ($(build-programs),yes) -binaries-all-notests = $(filter-out $(others-noinstall), \ +ifeq (yes,$(have-libgcc_s)) +# NB: Build programs in $(others-noinstall) like tests only if libgcc_s is +# available. Otherwise, "build-many-glibcs.py compilers" will fail to +# build the initial glibc with the initial limited gcc due to the missing +# libgcc_s. +all-notests = $(others-noinstall) +endif +binaries-all-notests = $(filter-out $(all-notests), \ $(others) $(sysdep-others)) binaries-all-tests = $(tests) $(tests-internal) $(xtests) $(test-srcs) \ - $(tests-container) $(others-noinstall) + $(tests-container) $(all-notests) binaries-all = $(binaries-all-notests) $(binaries-all-tests) binaries-static-notests = $(others-static) binaries-static-tests = $(tests-static) $(xtests-static)