From bca485775106d1019eff498a79941bc3db6212fc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 27 Dec 2024 12:47:21 +0900 Subject: Replace dl linking with cmake-based variable Signed-off-by: Michele Calgaro (cherry picked from commit 381358f3fcd9cf9dc5dca4976cfce94f23823a2f) --- ConfigureChecks.cmake | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 980b744..2830be9 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -39,15 +39,7 @@ if( WITH_LIBLTDL ) else( WITH_LIBLTDL ) # check libdl - set( AKODE_LIBDL dl ) - check_library_exists( ${AKODE_LIBDL} dlopen /lib HAVE_LIBDL ) - if( NOT HAVE_LIBDL ) - unset( AKODE_LIBDL ) - check_function_exists( dlopen HAVE_DLOPEN ) - if( NOT HAVE_DLOPEN ) - tde_message_fatal( "libdl are required, but not found on your system" ) - endif( NOT HAVE_DLOPEN ) - endif( NOT HAVE_LIBDL ) + set( AKODE_LIBDL ${CMAKE_DL_LIBS} ) endif( WITH_LIBLTDL ) -- cgit v1.2.1