From: Olly Betts Date: Wed, 24 Jan 2018 01:09:23 +0000 (+1300) Subject: libtool: use -Fe with MSVC to specify filename X-Git-Tag: v2.5.0~52 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=81e8abf3ddb341e1e86d57fd4d7f318c264276f1;p=thirdparty%2Flibtool.git 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 --- diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 23a68497a..64df9b55d 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'