diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-27 13:14:24 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-27 18:32:33 +0900 |
commit | 42731f11817a86c155d811fde65d70638a210574 (patch) | |
tree | cf70f369b954b81d5c7bd8745015c2e02112444c | |
parent | e41f1390142e6087ed08c90cdf46f39bce984ec9 (diff) | |
download | tdesdk-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.cmake | 13 | ||||
-rw-r--r-- | kmtrace/CMakeLists.txt | 2 | ||||
-rw-r--r-- | kstartperf/CMakeLists.txt | 2 |
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} ) |