diff --git a/configure.ac b/configure.ac index 84d6e828..134ea5f6 100755 --- a/configure.ac +++ b/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" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 346ba079..9ca9d852 100644 --- a/src/CMakeLists.txt +++ b/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 ()