From: Olly Betts Date: Mon, 2 Aug 1999 22:24:34 +0000 (+0000) Subject: * libtool.m4 (AC_PROG_LD): strip carriage returns from the X-Git-Tag: multi-language-fork~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93a647af4302ed7771df080e70fcce3b97e1277e;p=thirdparty%2Flibtool.git * libtool.m4 (AC_PROG_LD): strip carriage returns from the output of gcc -print-prog-name=ld. * ltconfig.in: ditto. --- diff --git a/ChangeLog b/ChangeLog index 248eca0e7..65824bc2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,14 @@ +1999-08-02 Olly Betts + + * libtool.m4 (AC_PROG_LD): strip carriage returns from the + output of gcc -print-prog-name=ld. + * ltconfig.in: ditto. + 1999-07-30 Pavel Roskin * ltmain.in: Ensure that gcc on HPsUX uses -fPIC, or else initialised structures are sometimes emitted in the code section. - + 1999-07-30 Mumit Khan * ltconfig.in: Read line at a time to avoid tokenisation by diff --git a/libtool.m4 b/libtool.m4 index 1533d91c5..5b28813d5 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -273,7 +273,7 @@ ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) - ac_prog=`($CC -print-prog-name=ld) 2>&5` + ac_prog=`($CC -print-prog-name=ld) 2>&5 | sed 's, $,,'` case "$ac_prog" in # Accept absolute paths. changequote(,)dnl diff --git a/ltconfig.in b/ltconfig.in index eec2ee92b..9c98d02da 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1166,7 +1166,7 @@ if test -z "$LD"; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6 echo "$progname:@LINENO@: checking for ld used by GCC" >&5 - ac_prog=`($CC -print-prog-name=ld) 2>&5` + ac_prog=`($CC -print-prog-name=ld) 2>&5 | sed 's, $,,'` case "$ac_prog" in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*)