cmake/sdlchecks.cmake
changeset 7507 885b4aab4190
parent 7438 97c35b3811d1
child 7521 03bca9a4180d
     1.1 --- a/cmake/sdlchecks.cmake	Tue Jul 23 12:59:29 2013 -0700
     1.2 +++ b/cmake/sdlchecks.cmake	Tue Jul 23 17:38:59 2013 -0700
     1.3 @@ -18,10 +18,10 @@
     1.4      endif()
     1.5      check_c_source_compiles("
     1.6         #include <dlfcn.h>
     1.7 -       #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
     1.8 -       #error Use dlcompat for Mac OS X 10.2 compatibility
     1.9 -       #endif
    1.10 -       int main(int argc, char **argv) {}" HAVE_DLOPEN)
    1.11 +       int main(int argc, char **argv) {
    1.12 +         void *handle = dlopen("", RTLD_NOW);
    1.13 +         const char *loaderror = (char *) dlerror();
    1.14 +       }" HAVE_DLOPEN)
    1.15      set(CMAKE_REQUIRED_LIBRARIES)
    1.16    endif()
    1.17