Merge pull request #3025 from shadowsocks/fix/cares-static-lib-name

Fix static c-ares detection for c-ares >= 1.27
This commit is contained in:
Max Lv authored and GitHub committed 2026-06-17 11:26:39 +08:00
commit acf55e495f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
- name: Build
run: |
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_STATIC=OFF
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)
- name: Unit tests
+1 -1
View File
@@ -105,7 +105,7 @@ find_library(LIBMBEDTLS libmbedtls.a)
find_library(LIBMBEDCRYPTO libmbedcrypto.a HINTS ${_MBEDTLS_LIB_DIR} NO_DEFAULT_PATH)
find_library(LIBMBEDCRYPTO libmbedcrypto.a)
find_library(LIBEV libev.a)
find_library(LIBUDNS libcares.a)
find_library(LIBUDNS NAMES libcares.a libcares_static.a)
find_library(LIBPCRE2 libpcre2-8.a)
# Dependencies we need for static and shared