From 61238c4f0431f23e058abbc8d81ec9f40c0e38a7 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Thu, 28 Oct 1999 20:28:11 +0000 Subject: [PATCH] * ltconfig.in (opt_cr): Handle crlf sequences output by the mingw toolchain. --- ChangeLog | 3 +++ ltconfig.in | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 080e28eba..d4e0e5d6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-10-28 Olly Betts + * ltconfig.in (opt_cr): Handle crlf sequences output by the + mingw toolchain. + * libtool.m4: Third time lucky, with Tor's patch. 1999-10-19 Tor Lillqvist diff --git a/ltconfig.in b/ltconfig.in index 1ac8498b9..b1eb47ebd 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1797,6 +1797,14 @@ sysv4) ;; esac +# Handle CRLF in mingw too chain +opt_cr= +case "$host_os" in +mingw*) + opt_cr=`echo 'x?' | tr x '\015'` # option cr in regexp + ;; +esac + # If we're using GNU nm, then use its standard symbol codes. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then symcode='[ABCDGISTW]' @@ -1806,7 +1814,7 @@ fi for ac_symprfx in "" "_"; do # Write the raw and C identifiers. - global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$/$symxfrm/p'" +global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no -- 2.47.3