From: Olly Betts Date: Tue, 12 May 2026 02:20:54 +0000 (+0300) Subject: ltmain.in: Avoid using deprecated MSVC -o option X-Git-Tag: v2.6.1~10 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=92f015dbf62576541bcffd9fccfc2d23fc544135;p=thirdparty%2Flibtool.git ltmain.in: Avoid using deprecated MSVC -o option Microsoft deprecated -o and MSVC emits a warning when used: cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release The replacement when linking an executable is `-Fe`. Reported: https://savannah.gnu.org/patch/?10570 * build-aux/ltmain.in: Replace -o with -Fe for MSVC compiler. --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 70d0e1110..3c30492bf 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -8907,7 +8907,13 @@ func_mode_link () # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { - $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + func_cc_basename "$LTCC" + case $func_cc_basename_result in + cl|cl.exe) + $LTCC $LTCFLAGS -Fe$cwrapper $cwrappersource ;; + *) + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource ;; + esac $STRIP $cwrapper }