From: Michael Haubenwallner Date: Thu, 11 May 2017 12:10:17 +0000 (+0200) Subject: libtool.m4: For MS dumpbin drop CR first. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=240816b3106f29d5e21139f631f96fa2efc5f3db;p=thirdparty%2Flibtool.git libtool.m4: For MS dumpbin drop CR first. On Cygwin, gawk-4.1.4-3 and newer do not treat the input stream as text any more, leaving us behind with carriage return in symbol names. * m4/libtool.m4 (lt_cv_sys_global_symbol_pipe): In AWK script for MS dumpbin drop CR first. --- diff --git a/m4/libtool.m4 b/m4/libtool.m4 index c97fdd3bb..bf9e780f3 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -4191,8 +4191,10 @@ for ac_symprfx in "" "_"; do # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++ or ICC, - # which start with @ or ?. + # which start with @ or ?. And Cygwin gawk-4.1.4-3 and newer + # treats input as binary, have to drop carriage return first. lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {sub(/\\r\$/,\"\")};"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\