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 20:16:18 +0900
commitcced8d413b25722651b28aca9dde7ad2c638176c (patch)
treeafde9ab4c7500685c1f687220dd4192f1f9914c8
parent75b09d8869fda16a34f349e391ae0e709d8af8f2 (diff)
downloadtdesdk-cced8d413b25722651b28aca9dde7ad2c638176c.tar.gz
tdesdk-cced8d413b25722651b28aca9dde7ad2c638176c.zip
Replace dl linking with cmake-based variable
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 42731f11817a86c155d811fde65d70638a210574)
-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 ce929a8b..cb4a87b2 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -28,16 +28,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}
)