diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2013-06-28 12:54:17 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2013-06-28 13:10:40 +0200 |
commit | 57343dc38bae72cbe121033836edd716b60d61a7 (patch) | |
tree | 2fe00613ae0bc962ea8402c16bab5d40c589e296 | |
parent | 97f695d099e60121700d47512172f1d6839dfb2a (diff) | |
download | eurephia-57343dc38bae72cbe121033836edd716b60d61a7.tar.gz eurephia-57343dc38bae72cbe121033836edd716b60d61a7.tar.xz eurephia-57343dc38bae72cbe121033836edd716b60d61a7.zip |
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 <dazo@users.sourceforge.net>
(cherry picked from commit 9dd9da8fb505e4b97035daa99e4507c33090ff15)
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |