diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-13 00:55:22 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-13 00:55:22 +0000 |
commit | 9ace46a5c9c62c1aed1aaed4d65adea7c63dfcfa (patch) | |
tree | 97c5bd4b9b3901047d59cd21d76d9d360bae4941 /gcc/configure.ac | |
parent | cfea3dcbaee52296d38b334c173e7bca72faa031 (diff) | |
download | gcc-9ace46a5c9c62c1aed1aaed4d65adea7c63dfcfa.tar.gz |
* configure.ac (gcc_cv_ld): Don't set to LD if target is not
host, but try LD_FOR_TARGET first.
* configure: Rebuilt.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
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. |