]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool.m4: Fix '-Fe' usage with linking in MSVC
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 13 Nov 2024 17:37:10 +0000 (19:37 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 20 Nov 2024 15:36:28 +0000 (17:36 +0200)
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.

NEWS
NO-THANKS
m4/libtool.m4

diff --git a/NEWS b/NEWS
index 39e75baedbf5d10ab15b428d34402c8e59a6fd60..b61b40247c54c1e4582deb7fe49c2af966420261 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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'.
index 218590bb5ffd6047b6391a968c0ff8bc03ae2d8e..9a4da5604473e8c666621805dcc629fbacf15578 100644 (file)
--- a/NO-THANKS
+++ b/NO-THANKS
@@ -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
index 2955adebf26978a4002ec55c55e009a4cb9a70e3..ad0ad445b8e55c6da09d0d40ae39ce7dc54ab3ed 100644 (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'