libtool.m4: Fix '-Fe' usage with linking in MSVC

A space after '-Fe' treats a file name as an input file instead of
as the intended output file.

* m4/libtool.m4: Remove space after '-Fe'.
* NO-THANKS: Add Kirill Makurin for bug report 74175.
* NEWS: Update.
This commit is contained in:
Ileana Dumitrescu 2024-11-13 19:37:10 +02:00
parent 0a1e894220
commit 09e89cc28d
No known key found for this signature in database
GPG Key ID: 6570EA01146F7354
3 changed files with 5 additions and 2 deletions

2
NEWS
View File

@ -34,6 +34,8 @@ NEWS - list of user-visible changes between releases of GNU Libtool
- Fix linking for mingw with lld by prefering response files over the
linker script.
- Fix '-Fe' usage with linking in MSVC.
** Changes in supported systems or compilers:
- Support additional flang-based compilers, 'f18' and 'f95'.

View File

@ -107,6 +107,7 @@ John Wolfe jlw@sco.com
Joseph Beckenbach III jrb3@best.com
Kenneth Albanowski kjahds@kjahds.com
Khem Raj raj.khem@gmail.com
Kirill Makurin maiddaisuki@outlook.com
Kurt D. Zeilenga Kurt@OpenLDAP.Org
Lawrence Velázquez larryv@macports.org
Lionel Landwerlin llandwerlin@gmail.com

4
m4/libtool.m4 vendored
View File

@ -5667,14 +5667,14 @@ _LT_EOF
# Tell ltmain to make .dll files, not .so files.
shrext_cmds=.dll
# FIXME: Setting linknames here is a bad hack.
_LT_TAGVAR(archive_cmds, $1)='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
_LT_TAGVAR(archive_cmds, $1)='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
cp "$export_symbols" "$output_objdir/$soname.def";
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
else
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
fi~
$CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
$CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
linknames='
# The linker will not automatically build a static lib if we build a DLL.
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'