From 1e4412b317f74dd64069309544fe73c95e2c10e7 Mon Sep 17 00:00:00 2001 From: fanquake Date: Mon, 13 May 2024 20:01:06 +0800 Subject: [PATCH] depends: set AR for CMake --- depends/funcs.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/depends/funcs.mk b/depends/funcs.mk index d8a72421b4a..05abf7bf7ec 100644 --- a/depends/funcs.mk +++ b/depends/funcs.mk @@ -180,6 +180,7 @@ $(1)_cmake=env CC="$$($(1)_cc)" \ CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \ LDFLAGS="$$($(1)_ldflags)" \ cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" \ + -DCMAKE_AR=`which $$($(1)_ar)` \ -DCMAKE_INSTALL_LIBDIR=lib/ \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=$(V) \