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.
# 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
}