Skip to content

Commit

Permalink
fix c-ares link dep
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoSolitary authored and Max Lv committed Jun 25, 2022
1 parent 549b9be commit 05e70d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 05e70d4

Please sign in to comment.