summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}
)