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 <mschiffer@universe-factory.net>
This commit is contained in:
parent
6fb212f293
commit
96db107524
1 changed files with 3 additions and 2 deletions
|
@ -19,10 +19,11 @@ HOST_CONFIGURE_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
|
HOST_CONFIGURE_CMD := MAKEFLAGS="$(HOST_JOBS)" $(BASH) ./configure
|
||||||
|
|
||||||
HOST_CONFIGURE_VARS :=
|
HOST_CONFIGURE_VARS :=
|
||||||
|
|
||||||
HOST_CONFIGURE_ARGS := \
|
HOST_CONFIGURE_ARGS := \
|
||||||
--prefix=$(STAGING_DIR_HOST) \
|
--prefix=$(STAGING_DIR_HOST)
|
||||||
$(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)")
|
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
|
|
Loading…
Reference in a new issue