From 591f0748092604300ca861b3144c53dbe9b95a01 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 28 Jun 2013 12:54:17 +0200 Subject: Fixed issue with missing -ldl on unstable Debian (sid) distro Debian now requires explicit -ldl when linking eurephiadm and the other executables in ./utils. Presuming this will be an issue on other Linux distributions, so made this generic for Linux builds. Thanks to Alberto Gonzalez Iniesta for helping solving this. Signed-off-by: David Sommerseth --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a07c83..d1cb71e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,7 @@ CHECK_INCLUDE_FILE(dlfcn.h HAVE_DLFCN_H) IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") CHECK_LIBRARY_EXISTS(dl dlopen "" HAVE_DLOPEN) CHECK_LIBRARY_EXISTS(dl dlclose "" HAVE_DLCLOSE) + SET(EXTRA_LIBS ${EXTRA_LIBS} -ldl) ELSE(!${CMAKE_SYSTEM_NAME} MATCHES "Linux") CHECK_LIBRARY_EXISTS(c dlopen "" HAVE_DLOPEN) CHECK_LIBRARY_EXISTS(c dlclose "" HAVE_DLCLOSE) -- cgit