configure.ac (gcc_cv_ld): Don't set to LD if target is not host, but try LD_FOR_TARGE...
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 13 Feb 2004 00:55:22 +0000 (00:55 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 13 Feb 2004 00:55:22 +0000 (00:55 +0000)
* 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

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index d8c9992bdbd2c8c105521d1253133be3a08e5f98..c96cd87648711b4b5f3fd4929156db99666fdefd 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
+
+       * 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  <zack@codesourcery.com>
 
        * dbxout.c: Move declaration of dbxout_type_decl outside
index 9812c90cb9be78d093ce746f9f1fb6761462bef2..9c61d490414a71b5620f65ff237c72d5a59ab98c 100755 (executable)
@@ -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.
index b0ee990ee6be793cd295afefb69db0db189d2aab..d4c002d45acce1d8ed9514a096e34d9a77d70fa5 100644 (file)
@@ -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.