(unknown)
Ileana Dumitrescu <[email protected]> Wed, 3 Jun 2026 13:45:15 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.libtool.cvs |
|---|---|
| Message-ID | <[email protected]> |
branch: master commit 92f015dbf62576541bcffd9fccfc2d23fc544135 Author: Olly Betts <[email protected]> AuthorDate: Tue May 12 05:20:54 2026 +0300 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. --- build-aux/ltmain.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 70d0e111..3c30492b 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 }