configure.in
changeset 10043 24e8d042e532
parent 10009 8c6b05b0a27e
child 10089 25fda20d0173
     1.1 --- a/configure.in	Thu Jan 07 16:01:24 2016 -0500
     1.2 +++ b/configure.in	Thu Jan 07 16:42:30 2016 -0800
     1.3 @@ -3516,6 +3516,19 @@
     1.4  if test "x$enable_rpath" = "xyes"; then
     1.5    if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
     1.6      SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
     1.7 +
     1.8 +    AC_MSG_CHECKING(for linker option --enable-new-dtags)
     1.9 +    have_enable_new_dtags=no
    1.10 +    save_LDFLAGS="$LDFLAGS"
    1.11 +    LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
    1.12 +    AC_TRY_LINK([
    1.13 +    ],[
    1.14 +    ],[
    1.15 +    have_enable_new_dtags=yes
    1.16 +    SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
    1.17 +    ])
    1.18 +    LDFLAGS="$save_LDFLAGS"
    1.19 +    AC_MSG_RESULT($have_enable_new_dtags)
    1.20    fi
    1.21    if test $ARCH = solaris; then
    1.22      SDL_RLD_FLAGS="-R\${libdir}"