Skip to content

Commit 64c5f31

Browse files
committed
avoid c-ares dependency on libnsl
1 parent 802d89f commit 64c5f31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/cares.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "module")
1818
endif()
1919
set(CARES_SHARED OFF CACHE BOOL "disable shared library")
2020
set(CARES_STATIC ON CACHE BOOL "link cares statically")
21+
if(gRPC_BACKWARDS_COMPATIBILITY_MODE)
22+
# See https://github.com/grpc/grpc/issues/17255
23+
set(HAVE_LIBNSL OFF CACHE BOOL "avoid cares dependency on libnsl")
24+
endif()
2125
add_subdirectory(third_party/cares/cares)
2226

2327
if(TARGET c-ares)

0 commit comments

Comments
 (0)