]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Build programs in $(others-noinstall) like tests if libgcc_s is available
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 30 Oct 2025 23:29:45 +0000 (07:29 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 4 Nov 2025 06:48:18 +0000 (14:48 +0800)
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 <hjl.tools@gmail.com>
Rules

diff --git a/Rules b/Rules
index 7f6d0636737069d026da25bf3a00149f8b256ec6..dd319e80139a8f10592a24b682ee10eb375e90c1 100644 (file)
--- 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)