From 3848cf458ef998fc9971edd6a01cc9cdb43fbef9 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 24 Sep 2022 16:57:40 -0700 Subject: tools/cmake: Build without some included libs Saves a little bit of time when compiling cmake. Added patches to fix searching liblzma and zlib. The issue is that because pkgconfig is not used, the system libraries get used. Signed-off-by: Rosen Penev --- tools/cmake/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/cmake/Makefile') diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile index a0695c7d62..2d20113a39 100644 --- a/tools/cmake/Makefile +++ b/tools/cmake/Makefile @@ -32,8 +32,14 @@ HOST_CONFIGURE_VARS += \ HOST_CONFIGURE_ARGS := \ $(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)") \ --prefix="$(STAGING_DIR_HOST)" \ + --system-expat \ + --system-liblzma \ + --system-zlib \ + --system-zstd \ --generator=Ninja +HOST_LDFLAGS += -Wl,-rpath,$(STAGING_DIR_HOST)/lib + define Host/Compile/Default +$(NINJA) -C $(HOST_BUILD_DIR) $(1) endef -- cgit v1.2.3