Skip to content
Snippets Groups Projects
Commit ed16c1e5 authored by Serge Petrenko's avatar Serge Petrenko Committed by Kirill Yukhin
Browse files

build: fix bundled libcurl and c-ares build on OS X

c-ares relies on libresolv on OS X, and when built statically, brings
the same dependency on to libcurl.

Link libcurl with libresolv explicitly when linking with c-ares

NO_DOC=build fix
NO_TEST=build fix
NO_CHANGELOG=build fix
parent 5da1f6be
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,9 @@ macro(curl_build)
set(CURL_LIBRARIES bundled-libcurl ${ZLIB_LIBRARIES})
if (BUNDLED_LIBCURL_USE_ARES)
set(CURL_LIBRARIES ${CURL_LIBRARIES} ${ARES_LIBRARIES})
if (TARGET_OS_DARWIN)
set(CURL_LIBRARIES ${CURL_LIBRARIES} resolv)
endif()
endif()
if (BUNDLED_LIBCURL_USE_NGHTTP2)
set(CURL_LIBRARIES ${CURL_LIBRARIES} ${NGHTTP2_LIBRARIES})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment