libtool-commit
[Top][All Lists]
Advanced

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

branch master updated: libtool: use -Fe with MSVC to specify filename


From: Ileana Dumitrescu
Subject: branch master updated: libtool: use -Fe with MSVC to specify filename
Date: Tue, 16 Jan 2024 14:01:27 -0500

This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch master
in repository libtool.

The following commit(s) were added to refs/heads/master by this push:
     new 81e8abf3 libtool: use -Fe with MSVC to specify filename
81e8abf3 is described below

commit 81e8abf3ddb341e1e86d57fd4d7f318c264276f1
Author: Olly Betts <olly@survex.com>
AuthorDate: Wed Jan 24 14:09:23 2018 +1300

    libtool: use -Fe with MSVC to specify filename
    
    This avoids a deprecation warning with current versions of MSVC, by
    replacing the -o flag with -Fe. -Fe is documented as supported at
    least as far back as Visual C 6.0 which was released in 1998.
    
    * m4/libtool.m4: Use -Fe instead of -o to specify DLL output filename
    for MSVC.
    
    Signed-off-by: Olly Betts <olly@survex.com>
---
 m4/libtool.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 23a68497..64df9b55 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -5598,14 +5598,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 -o $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 -o $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]