CMakeLists.txt
changeset 10043 24e8d042e532
parent 10034 8764bcc13666
child 10044 8fc20bbbed5c
     1.1 --- a/CMakeLists.txt	Thu Jan 07 16:01:24 2016 -0500
     1.2 +++ b/CMakeLists.txt	Thu Jan 07 16:42:30 2016 -0800
     1.3 @@ -958,6 +958,12 @@
     1.4      set(SDL_RLD_FLAGS "")
     1.5      if(BSDI OR FREEBSD OR LINUX OR NETBSD)
     1.6        set(SDL_RLD_FLAGS "-Wl,-rpath,\${libdir}")
     1.7 +      set(CMAKE_REQUIRED_FLAGS "-Wl,--enable-new-dtags")
     1.8 +      check_c_compiler_flag("" HAVE_ENABLE_NEW_DTAGS)
     1.9 +      set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
    1.10 +      if(HAVE_ENABLE_NEW_DTAGS)
    1.11 +        list(APPEND SDL_RLD_FLAGS "-Wl,--enable-new-dtags")
    1.12 +      endif()
    1.13      elseif(SOLARIS)
    1.14        set(SDL_RLD_FLAGS "-R\${libdir}")
    1.15      endif()