From 3e7769a58026702a16d116a48f20899bc1f11ee6 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Thu, 29 Aug 2019 09:54:10 +0200 Subject: CMake: use platform dependent name for dlopen() library Closes #4279 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af367e522..0772d6e51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -260,7 +260,7 @@ if(ENABLE_THREADED_RESOLVER) endif() # Check for all needed libraries -check_library_exists_concat("dl" dlopen HAVE_LIBDL) +check_library_exists_concat("${CMAKE_DL_LIBS}" dlopen HAVE_LIBDL) check_library_exists_concat("socket" connect HAVE_LIBSOCKET) check_library_exists("c" gethostbyname "" NOT_NEED_LIBNSL) -- cgit v1.2.3