tools/cmake: add MAKE config variable
authorRosen Penev <rosenp@gmail.com>
Thu, 10 Feb 2022 01:15:14 +0000 (17:15 -0800)
committerPaul Spooren <mail@aparcar.org>
Fri, 11 Feb 2022 11:04:09 +0000 (12:04 +0100)
Makes sure that Ninja from staging_dir is used and nowhere else.

Reported by reproducible builds project. Builds have been failing ever
since tools/cmake started using Ninja.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
tools/cmake/Makefile

index e54e8c45479fd9aa4c678a7647a9766dad173e41..8f0631eb74c9e77a5545a2e54cde2914be9cb755 100644 (file)
@@ -25,7 +25,8 @@ HOST_CONFIGURE_VARS += \
        CC="$(HOSTCC_NOCACHE)" \
        CXX="$(HOSTCXX_NOCACHE)" \
        MAKEFLAGS="$(HOST_JOBS)" \
-       CXXFLAGS="$(HOST_CFLAGS)"
+       CXXFLAGS="$(HOST_CFLAGS)" \
+       MAKE="$(STAGING_DIR_HOST)/bin/ninja"
 
 HOST_CONFIGURE_ARGS := \
        $(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)") \