Browse Source

fix c-ares link dep

pull/2912/head
DDoSolitary 2 years ago
committed by Max Lv
parent
commit
05e70d4317
2 changed files with 2 additions and 2 deletions
  1. 2
      configure.ac
  2. 2
      src/CMakeLists.txt

2
configure.ac

@ -66,7 +66,7 @@ dnl Add library for mingw
case $host in
*-mingw*)
CFLAGS="$CFLAGS -mno-ms-bitfields"
LIBS="$LIBS -lws2_32"
LIBS="$LIBS -lws2_32 -liphlpapi"
;;
*-cygwin*)
CFLAGS="$CFLAGS -mno-ms-bitfields"

2
src/CMakeLists.txt

@ -117,7 +117,7 @@ list(APPEND DEPS
)
if (MINGW)
list(APPEND DEPS ws2_32)
list(APPEND DEPS ws2_32 iphlpapi)
add_compile_definitions(CARES_STATICLIB PCRE_STATIC)
endif ()
endif ()

Loading…
Cancel
Save