aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-02-13 00:55:22 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2004-02-13 00:55:22 +0000
commit1a543d2529ac5f97f788d3b1f69792a3ce486700 (patch)
tree97c5bd4b9b3901047d59cd21d76d9d360bae4941 /gcc/configure
parent74eb57176a548788869ea8bf3d96e85bd210156d (diff)
downloadgcc-1a543d2529ac5f97f788d3b1f69792a3ce486700.zip
gcc-1a543d2529ac5f97f788d3b1f69792a3ce486700.tar.gz
gcc-1a543d2529ac5f97f788d3b1f69792a3ce486700.tar.bz2
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
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure
index 9812c90..9c61d49 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.