From 95e26b07260cd931a502f26ae1bff589393ab12d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 6 Mar 2014 12:16:00 +0100 Subject: [PATCH] Fix dladdr detection. Fixes #5717 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 369700273..849435500 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)