From: Rolf Eike Beer Date: Thu, 29 Aug 2019 07:54:10 +0000 (+0200) Subject: CMake: use platform dependent name for dlopen() library X-Git-Tag: curl-7_66_0~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e7769a58026702a16d116a48f20899bc1f11ee6;p=thirdparty%2Fcurl.git CMake: use platform dependent name for dlopen() library Closes #4279 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index af367e5226..0772d6e512 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)