From 69ad8ae05dc82dd41924a8ffe8d97e887ca7fe2e Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 5 Apr 1999 07:05:59 +0000 Subject: [PATCH] 1994-04-06 Ben Elliston * config.guess: Avoid the possibility of `ld' on GNU/Linux systems being something other than the GNU linker (such as a directory, in the case of GNU binutils). --- ChangeLog | 8 +++++++- config.guess | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83eb05b1..b4315d04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +1994-04-06 Ben Elliston + + * config.guess: Avoid the possibility of `ld' on GNU/Linux systems + being something other than the GNU linker (such as a directory, in + the case of GNU binutils). + 1999-04-05 Ben Elliston - * config.sub: Add modern Alpha processors. + * config.sub: Add modern Alpha processors. Reorganise. * acspecific.m4 (AC_CYGWIN): Do not remove conftest*; let AC_TRY_COMPILE clean up after itself. diff --git a/config.guess b/config.guess index bb6276ce..244b0a40 100755 --- a/config.guess +++ b/config.guess @@ -607,8 +607,9 @@ EOF esac # The BFD linker knows what the default object file format is, so - # first see if it will tell us. - ld_help_string=`ld --help 2>&1` + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + ld_help_string=`cd /; ld --help 2>&1` ld_supported_emulations=`echo $ld_help_string \ | sed -ne '/supported emulations:/!d s/[ ][ ]*/ /g