depends: set AR for CMake

This commit is contained in:
fanquake 2024-05-13 20:01:06 +08:00
parent b94061902e
commit 1e4412b317
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

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