summaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-10-11 00:05:08 +0000
committerGuy Harris <guy@alum.mit.edu>2013-10-11 00:05:08 +0000
commit2ee9b16466165e335e60c9cacfdd1d06ed1c52df (patch)
treed1148b29b3a6af72ee16ad7797874a38ff6f820e /ConfigureChecks.cmake
parent2ed259ccbce77508ee4b55743bcc2b063fbbe89b (diff)
downloadwireshark-2ee9b16466165e335e60c9cacfdd1d06ed1c52df.tar.gz
Note that dladdr() isn't being found on OS X, even though it's
available. svn path=/trunk/; revision=52524
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake9
1 files changed, 9 insertions, 0 deletions
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()