]> granicus.if.org Git - icinga2/commitdiff
Fix dladdr detection.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 6 Mar 2014 11:16:00 +0000 (12:16 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 6 Mar 2014 11:16:00 +0000 (12:16 +0100)
Fixes #5717

CMakeLists.txt

index 369700273d6eb8449e6f5991ed91331e4f79464c..849435500c65735d752f4fad3623a298dc1a0d0b 100644 (file)
@@ -104,7 +104,7 @@ include(CheckLibraryExists)
 check_function_exists(vfork HAVE_VFORK)
 check_function_exists(backtrace_symbols HAVE_BACKTRACE_SYMBOLS)
 check_function_exists(pipe2 HAVE_PIPE2)
-check_function_exists(dladdr HAVE_DLADDR)
+check_library_exists(dl dladdr "dlfcn.h" HAVE_DLADDR)
 check_library_exists(crypto BIO_f_zlib "" HAVE_BIOZLIB)
 
 include(GNUInstallDirs)