libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Ileana Dumitrescu
Date: Wed, 20 Nov 2024 10:40:54 -0500 (EST)

branch: master
commit 6bc5e177b6caa14078cf4315da50c874493bf8c3
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Wed Nov 13 19:37:10 2024 +0200

    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.
---
 NEWS          | 2 ++
 NO-THANKS     | 1 +
 m4/libtool.m4 | 4 ++--
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 39e75bae..b61b4024 100644
--- 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'.
diff --git a/NO-THANKS b/NO-THANKS
index 218590bb..9a4da560 100644
--- 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
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 2955adeb..ad0ad445 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -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'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]