From a935e22d06b2c354247b3b004c285ede9cd84f58 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 7 Jul 2016 14:46:32 +0200 Subject: tools/cmake: fix parallel build with Make 4.2+ Avoid using the --parallel argument to the CMake bootstrap, as that doesn't allow us to remove the -j argument. Instead, pass the HOST_JOBS arguments in MAKEFLAGS. Signed-off-by: Matthias Schiffer --- tools/cmake/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile index da62f70745..aaa3b33f4f 100644 --- a/tools/cmake/Makefile +++ b/tools/cmake/Makefile @@ -19,10 +19,11 @@ HOST_CONFIGURE_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk +HOST_CONFIGURE_CMD := MAKEFLAGS="$(HOST_JOBS)" $(BASH) ./configure + HOST_CONFIGURE_VARS := HOST_CONFIGURE_ARGS := \ - --prefix=$(STAGING_DIR_HOST) \ - $(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)") + --prefix=$(STAGING_DIR_HOST) $(eval $(call HostBuild)) -- cgit v1.2.3