From: Ileana Dumitrescu Date: Mon, 17 Jun 2024 13:13:07 +0000 (+0300) Subject: ltmain: Fix testsuite errors for windows X-Git-Tag: v2.5.1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98e83597c014ee0f05cc62d90ddeb75da3ed3bef;p=thirdparty%2Flibtool.git ltmain: Fix testsuite errors for windows Numerous test failures on windows/cygwin/mingw result with: did not find the 'nothing' variable A syntax fix resolves these test failures for 64-bit windows- based systems. * build-aux/ltmain.in: Alter syntax in sed command. --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index abb7b0c70..991228ae9 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -2813,8 +2813,16 @@ extern \"C\" { eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | - $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + case $host in + i[3456]86-*-mingw32*) + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + ;; + *) + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/__nm_//' >> '$nlist'" + ;; + esac } else # not an import lib $opt_dry_run || {