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.
This commit is contained in:
Ileana Dumitrescu 2024-06-17 16:13:07 +03:00
parent e22141c0c5
commit 98e83597c0
No known key found for this signature in database
GPG Key ID: 6570EA01146F7354

View File

@ -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 || {