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:14:46 +0200 |
commit | 591f0748092604300ca861b3144c53dbe9b95a01 (patch) | |
tree | 79b42c9c7ab1dd416e76816cf473cd8f4e115706 | |
parent | ad0dc1510b08e54884952d1a9dc75ec3571928e7 (diff) | |
download | eurephia-591f0748092604300ca861b3144c53dbe9b95a01.tar.gz eurephia-591f0748092604300ca861b3144c53dbe9b95a01.tar.xz eurephia-591f0748092604300ca861b3144c53dbe9b95a01.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>
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |