From 83daf36f1251d17200ffe7cce56e21f632a0c98e Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 7 Oct 2026 14:28:33 -0300 Subject: [PATCH] Makefile.in: Run the build directory goals serially (BZ 34699) The builddir Makefile runs a separate make in the source directory for each goal, so 'make -jN check xcheck' runs both at the same time. Since a subdirectory's xtests also builds and runs its tests, the two instances build the same targets concurrently and fail when renaming the shared temporary files. Add .NOTPARALLEL so the goals run one after another; each still builds in parallel. Checked on x86_64-linux-gnu. Reviewed-by: Arjun Shankar --- Makefile.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.in b/Makefile.in index e40dcbbc78..9fd5468ba8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,6 +16,8 @@ test-supported-fortify = @libc_cv_test_supported_fortify_source@ .PHONY: all install bench +.NOTPARALLEL: + all .DEFAULT: $(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@