From 2ee9b16466165e335e60c9cacfdd1d06ed1c52df Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 11 Oct 2013 00:05:08 +0000 Subject: Note that dladdr() isn't being found on OS X, even though it's available. svn path=/trunk/; revision=52524 --- ConfigureChecks.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3e3f62f74c..95ea8cea0d 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -70,6 +70,15 @@ include(CheckFunctionExists) check_function_exists("chown" HAVE_CHOWN) cmake_push_check_state() +# +# XXX - this is *not* finding dladdr() on OS X (at least not on +# Mountain Lion), even though it's available; autoconf does find +# it. The dl* functions can be tricky, in that they might be +# exported by the run-time linker rather than by any library, +# so the only way to check for it that might work is "can I link +# a program that calls this function?", not, for example, "do +# any of these libraries define this function?" +# set(CMAKE_REQUIRED_LIBRARIES %{CMAKE_DL_LIBS}) check_function_exists("dladdr" HAVE_DLADDR) cmake_pop_check_state() -- cgit v1.2.1