summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-12-31 17:59:54 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-12-31 17:59:54 +0100
commit1b333949479e504017c7dffb6d70eecb53adb34a (patch)
treecf2f7c4d3f4be93efeb1baaee89a548ef613eaa4
parent0baa693d36f59080ff1c474d339b950cefa13dd5 (diff)
downloadeurephia-1b333949479e504017c7dffb6d70eecb53adb34a.tar.gz
eurephia-1b333949479e504017c7dffb6d70eecb53adb34a.tar.xz
eurephia-1b333949479e504017c7dffb6d70eecb53adb34a.zip
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 <dazo@users.sourceforge.net>
-rw-r--r--eurephiadm/CMakeLists.txt2
-rw-r--r--plugin/CMakeLists.txt2
-rw-r--r--utils/CMakeLists.txt2
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