From 57343dc38bae72cbe121033836edd716b60d61a7 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 (cherry picked from commit 9dd9da8fb505e4b97035daa99e4507c33090ff15) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6126ee..9178f76 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