]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_PROG_LD): strip carriage returns from the
authorOlly Betts <olly@muscat.co.uk>
Mon, 2 Aug 1999 22:24:34 +0000 (22:24 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 2 Aug 1999 22:24:34 +0000 (22:24 +0000)
output of gcc -print-prog-name=ld.
* ltconfig.in: ditto.

ChangeLog
libtool.m4
ltconfig.in

index 248eca0e75d1c8fb02d78fff4385a4373bf611ae..65824bc2ef1fc36d794bdfb75aab377cb0c294ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,14 @@
+1999-08-02  Olly Betts  <olly@muscat.co.uk>
+
+       * 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  <pavel_roskin@geocities.com>
 
        * 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  <khan@xraylith.wisc.edu>
 
        * ltconfig.in:  Read line at a time to avoid tokenisation by
index 1533d91c58616954f27b3ef1ee8e86df34ac20dd..5b28813d52cbd5c7558907d0e3b404627e3e1a37 100644 (file)
@@ -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,\r$,,'`
   case "$ac_prog" in
     # Accept absolute paths.
 changequote(,)dnl
index eec2ee92bc72699c26abe9ccc3c11a16df5a2056..9c98d02dab15deb195009475446def86d2fdfdd8 100755 (executable)
@@ -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,\r$,,'`
     case "$ac_prog" in
     # Accept absolute paths.
     [\\/]* | [A-Za-z]:[\\/]*)