]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CMake: use platform dependent name for dlopen() library
authorRolf Eike Beer <eb@emlix.com>
Thu, 29 Aug 2019 07:54:10 +0000 (09:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 31 Aug 2019 09:39:47 +0000 (11:39 +0200)
Closes #4279

CMakeLists.txt

index af367e5226f2bff736cc11426a01d8719cafabbb..0772d6e512bd144dfa867c7e0db84c8d9bc100b1 100644 (file)
@@ -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)