CMakeLists.txt
changeset 10044 8fc20bbbed5c
parent 10043 24e8d042e532
child 10047 281d1bfdacb1
     1.1 --- a/CMakeLists.txt	Thu Jan 07 16:42:30 2016 -0800
     1.2 +++ b/CMakeLists.txt	Thu Jan 07 17:21:50 2016 -0800
     1.3 @@ -957,12 +957,13 @@
     1.4    if(RPATH)
     1.5      set(SDL_RLD_FLAGS "")
     1.6      if(BSDI OR FREEBSD OR LINUX OR NETBSD)
     1.7 -      set(SDL_RLD_FLAGS "-Wl,-rpath,\${libdir}")
     1.8        set(CMAKE_REQUIRED_FLAGS "-Wl,--enable-new-dtags")
     1.9        check_c_compiler_flag("" HAVE_ENABLE_NEW_DTAGS)
    1.10        set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
    1.11        if(HAVE_ENABLE_NEW_DTAGS)
    1.12 -        list(APPEND SDL_RLD_FLAGS "-Wl,--enable-new-dtags")
    1.13 +        set(SDL_RLD_FLAGS "-Wl,-rpath,\${libdir} -Wl,--enable-new-dtags")
    1.14 +      else()
    1.15 +        set(SDL_RLD_FLAGS "-Wl,-rpath,\${libdir}")
    1.16        endif()
    1.17      elseif(SOLARIS)
    1.18        set(SDL_RLD_FLAGS "-R\${libdir}")