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:
Matthias Schiffer 2016-06-15 18:54:02 +02:00
parent 6fb212f293
commit 96db107524
No known key found for this signature in database
GPG key ID: 16EF3F64CB201D9C

View file

@ -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))