summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-12-27 13:14:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-12-27 18:32:33 +0900
commit42731f11817a86c155d811fde65d70638a210574 (patch)
treecf70f369b954b81d5c7bd8745015c2e02112444c
parente41f1390142e6087ed08c90cdf46f39bce984ec9 (diff)
downloadtdesdk-42731f11817a86c155d811fde65d70638a210574.tar.gz
tdesdk-42731f11817a86c155d811fde65d70638a210574.zip
Replace dl linking with cmake-based variable
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--ConfigureChecks.cmake13
-rw-r--r--kmtrace/CMakeLists.txt2
-rw-r--r--kstartperf/CMakeLists.txt2
3 files changed, 2 insertions, 15 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index ae328edd..09eb9b90 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -27,16 +27,3 @@ find_package( TDE )
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )
-
-
-##### check for libdl ###########################
-
-set( DL_LIBRARIES dl )
-check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL )
-if( NOT HAVE_LIBDL )
- unset( DL_LIBRARIES )
- check_function_exists( dlopen HAVE_DLOPEN )
- if( HAVE_DLOPEN )
- set( HAVE_LIBDL 1 )
- endif( HAVE_DLOPEN )
-endif( NOT HAVE_LIBDL )
diff --git a/kmtrace/CMakeLists.txt b/kmtrace/CMakeLists.txt
index 126a1013..bb4dcd29 100644
--- a/kmtrace/CMakeLists.txt
+++ b/kmtrace/CMakeLists.txt
@@ -54,7 +54,7 @@ tde_add_library( ktrace_s STATIC
tde_add_library( ktrace SHARED
SOURCES ksotrace.cpp ktrace.c
- LINK ${DL_LIBRARIES} ${Backtrace_LIBRARY}
+ LINK ${CMAKE_DL_LIBS} ${Backtrace_LIBRARY}
DESTINATION ${LIB_INSTALL_DIR}/kmtrace
)
diff --git a/kstartperf/CMakeLists.txt b/kstartperf/CMakeLists.txt
index 049eb880..8c6548f2 100644
--- a/kstartperf/CMakeLists.txt
+++ b/kstartperf/CMakeLists.txt
@@ -24,7 +24,7 @@ link_directories(
tde_add_library( kstartperf SHARED AUTOMOC
SOURCES libkstartperf.c
VERSION 1.0.0
- LINK ${DL_LIBRARIES}
+ LINK ${CMAKE_DL_LIBS}
DESTINATION ${LIB_INSTALL_DIR}
)