configure.in
changeset 10043 24e8d042e532
parent 10009 8c6b05b0a27e
child 10089 25fda20d0173
equal deleted inserted replaced
10042:8546f8015052 10043:24e8d042e532
  3514 # Set runtime shared library paths as needed
  3514 # Set runtime shared library paths as needed
  3515 
  3515 
  3516 if test "x$enable_rpath" = "xyes"; then
  3516 if test "x$enable_rpath" = "xyes"; then
  3517   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  3517   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  3518     SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  3518     SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
       
  3519 
       
  3520     AC_MSG_CHECKING(for linker option --enable-new-dtags)
       
  3521     have_enable_new_dtags=no
       
  3522     save_LDFLAGS="$LDFLAGS"
       
  3523     LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
       
  3524     AC_TRY_LINK([
       
  3525     ],[
       
  3526     ],[
       
  3527     have_enable_new_dtags=yes
       
  3528     SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
       
  3529     ])
       
  3530     LDFLAGS="$save_LDFLAGS"
       
  3531     AC_MSG_RESULT($have_enable_new_dtags)
  3519   fi
  3532   fi
  3520   if test $ARCH = solaris; then
  3533   if test $ARCH = solaris; then
  3521     SDL_RLD_FLAGS="-R\${libdir}"
  3534     SDL_RLD_FLAGS="-R\${libdir}"
  3522   fi
  3535   fi
  3523 else
  3536 else