configure
changeset 10043 24e8d042e532
parent 10009 8c6b05b0a27e
child 10090 cd34aa8b624c
     1.1 --- a/configure	Thu Jan 07 16:01:24 2016 -0500
     1.2 +++ b/configure	Thu Jan 07 16:42:30 2016 -0800
     1.3 @@ -23763,6 +23763,36 @@
     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 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
     1.9 +$as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
    1.10 +    have_enable_new_dtags=no
    1.11 +    save_LDFLAGS="$LDFLAGS"
    1.12 +    LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
    1.13 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.14 +/* end confdefs.h.  */
    1.15 +
    1.16 +
    1.17 +int
    1.18 +main ()
    1.19 +{
    1.20 +
    1.21 +
    1.22 +  ;
    1.23 +  return 0;
    1.24 +}
    1.25 +_ACEOF
    1.26 +if ac_fn_c_try_link "$LINENO"; then :
    1.27 +
    1.28 +    have_enable_new_dtags=yes
    1.29 +    SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
    1.30 +
    1.31 +fi
    1.32 +rm -f core conftest.err conftest.$ac_objext \
    1.33 +    conftest$ac_exeext conftest.$ac_ext
    1.34 +    LDFLAGS="$save_LDFLAGS"
    1.35 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
    1.36 +$as_echo "$have_enable_new_dtags" >&6; }
    1.37    fi
    1.38    if test $ARCH = solaris; then
    1.39      SDL_RLD_FLAGS="-R\${libdir}"