[PATCH v2] Build programs in $(others-noinstall) like if libgcc_s is available

Andreas Schwab schwab@suse.de
Mon Nov 3 12:35:56 GMT 2025


On Nov 01 2025, H.J. Lu wrote:

> diff --git a/Rules b/Rules
> index 7f6d063673..15dd3c9baf 100644
> --- a/Rules
> +++ b/Rules
> @@ -195,10 +195,20 @@ xtests:
>  	  > $(objpfx)subdir-xtests.sum
>  
>  ifeq ($(build-programs),yes)
> +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.
>  binaries-all-notests = $(filter-out $(others-noinstall), \
>  			 $(others) $(sysdep-others))
>  binaries-all-tests = $(tests) $(tests-internal) $(xtests) $(test-srcs) \
>  		     $(tests-container) $(others-noinstall)
> +else
> +binaries-all-notests = $(others) $(sysdep-others)
> +binaries-all-tests = $(tests) $(tests-internal) $(xtests) $(test-srcs) \
> +		     $(tests-container)

Please avoid the duplication.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list