From a90ffae6b239c1ebdfe456d36e9040b7f14495df Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 25 Apr 2026 14:14:34 +0200 Subject: [PATCH] Automate use of MAKE_NB_JOBS=-1 to avoid adding a conflicting job count entry to MAKEFLAGS --- Makefile.system | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.system b/Makefile.system index ab463f53db..e7638755df 100644 --- a/Makefile.system +++ b/Makefile.system @@ -247,6 +247,11 @@ NO_PARALLEL_MAKE=0 endif GETARCH_FLAGS += -DNO_PARALLEL_MAKE=$(NO_PARALLEL_MAKE) +ifndef MAKE_NB_JOBS +ifneq (,$(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS)))) +MAKE_NB_JOBS=-1 +endif +endif ifdef MAKE_NB_JOBS GETARCH_FLAGS += -DMAKE_NB_JOBS=$(MAKE_NB_JOBS) endif