From: Alexandre Oliva Date: Fri, 13 Feb 2004 00:55:22 +0000 (+0000) Subject: configure.ac (gcc_cv_ld): Don't set to LD if target is not host, but try LD_FOR_TARGE... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a543d2529ac5f97f788d3b1f69792a3ce486700;p=gcc.git configure.ac (gcc_cv_ld): Don't set to LD if target is not host, but try LD_FOR_TARGET first. * configure.ac (gcc_cv_ld): Don't set to LD if target is not host, but try LD_FOR_TARGET first. * configure: Rebuilt. From-SVN: r77744 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8c9992bdbd..c96cd876487 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-02-12 Alexandre Oliva + + * configure.ac (gcc_cv_ld): Don't set to LD if target is not + host, but try LD_FOR_TARGET first. + * configure: Rebuilt. + 2004-02-12 Zack Weinberg * dbxout.c: Move declaration of dbxout_type_decl outside diff --git a/gcc/configure b/gcc/configure index 9812c90cb9b..9c61d490414 100755 --- a/gcc/configure +++ b/gcc/configure @@ -9576,7 +9576,9 @@ gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd if test -x "$DEFAULT_LINKER"; then gcc_cv_ld="$DEFAULT_LINKER" -elif test -x "$LD"; then +elif test -x "$LD_FOR_TARGET"; then + gcc_cv_ld="$LD_FOR_TARGET" +elif test -x "$LD" && test x$host = x$target; then gcc_cv_ld="$LD" elif test -x collect-ld$host_exeext; then # Build using linker in the current directory. diff --git a/gcc/configure.ac b/gcc/configure.ac index b0ee990ee6b..d4c002d45ac 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1678,7 +1678,9 @@ gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd if test -x "$DEFAULT_LINKER"; then gcc_cv_ld="$DEFAULT_LINKER" -elif test -x "$LD"; then +elif test -x "$LD_FOR_TARGET"; then + gcc_cv_ld="$LD_FOR_TARGET" +elif test -x "$LD" && test x$host = x$target; then gcc_cv_ld="$LD" elif test -x collect-ld$host_exeext; then # Build using linker in the current directory.