From 1b333949479e504017c7dffb6d70eecb53adb34a Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 31 Dec 2010 17:59:54 +0100 Subject: Do not link in libdl explicitly The functions related to dynamic loading of shared objects are a part of the standard libc library on FreeBSD, while in Linux it is in libdl. However, the linker on Linux seems to add the libdl linking automatically when needed, so no need to explicitly link this library. Signed-off-by: David Sommerseth --- eurephiadm/CMakeLists.txt | 2 +- plugin/CMakeLists.txt | 2 +- utils/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eurephiadm/CMakeLists.txt b/eurephiadm/CMakeLists.txt index eb1ad34..8982a50 100644 --- a/eurephiadm/CMakeLists.txt +++ b/eurephiadm/CMakeLists.txt @@ -79,7 +79,7 @@ SET(MAN_PAGES # Link in the following dynamic libraries with eurephiadm. # ${EXTRA_LIBS} contains libxml2, libxslt and openssl library names -TARGET_LINK_LIBRARIES(eurephiadm dl crypto common ${EXTRA_LIBS}) +TARGET_LINK_LIBRARIES(eurephiadm crypto common ${EXTRA_LIBS}) # Install rules for eurephiadm INSTALL(TARGETS eurephiadm RUNTIME DESTINATION ${BINDIR}) diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 0b9381d..49e47de 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -96,7 +96,7 @@ ADD_LIBRARY(eurephia-auth MODULE SET_TARGET_PROPERTIES(eurephia-auth PROPERTIES PREFIX "") # Link in libraries -TARGET_LINK_LIBRARIES(eurephia-auth dl pthread rt crypto common) +TARGET_LINK_LIBRARIES(eurephia-auth pthread rt crypto common) # Install rules INSTALL(TARGETS eurephia-auth LIBRARY DESTINATION ${PLUGINDIR}) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index df6b2c1..2867c75 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -42,7 +42,7 @@ IF(EUREPHIADM) ../eurephiadm/client_context.c ../eurephiadm/client_config.c ) - TARGET_LINK_LIBRARIES(eurephia_init dl crypto common ${EXTRA_LIBS}) + TARGET_LINK_LIBRARIES(eurephia_init crypto common ${EXTRA_LIBS}) # Define the saltdecode build ADD_EXECUTABLE(eurephia_saltdecode -- cgit