diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 26ff93d06f..5c173eb004 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -67,16 +67,7 @@ include(CheckSymbolExists) 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}) +set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS}) check_function_exists("dladdr" HAVE_DLADDR) cmake_pop_check_state() |