[patch #10570] Avoid using deprecated MSVC -o option
Olly Betts <[email protected]> Mon, 11 May 2026 22:20:58 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.libtool.patches |
|---|---|
| Message-ID | <[email protected]> |
--8323329-1714636915-1778552458=:383225
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline
URL:=0A <https://savannah.gnu.org/patch/?10570>=0A=0A Summ=
ary: Avoid using deprecated MSVC -o option=0A Group: GNU =
Libtool=0A Submitter: ollybetts=0A Submitted: T=
ue 12 May 2026 02:20:54 AM UTC=0A Category: None=0A =
Priority: 5 - Normal=0A Status: None=0A =
Privacy: Public=0A Assigned to: None=0A Originator =
Email:=0A Open/Closed: Open=0A Discussion Lock: Unlocke=
d=0A=0A=0A _______________________________________________________=0A=0A=
Follow-up Comments:=0A=0A=0A-----------------------------------------------=
--------=0ADate: Tue 12 May 2026 02:20:54 AM UTC By: Olly Betts <ollybetts>=
=0AMicrosoft have unhelpfully deprecated -o and MSVC emits a warning on eve=
ry use=0Aof it:=0A=0Acl : Command line warning D9035 : option 'o' has been =
deprecated and will be=0Aremoved in a future release=0A=0AThe replacement w=
hen linking an executable (as here) is `-Fe` which has been=0Asupported for=
a long time. Note that there can't be a space between `-Fe` and=0Athe out=
put filename.=0A=0AThe warning is emitted by MSVC 2022 and 2026 but it seem=
s not by older=0Aversions.=0A=0AMost uses of `-o` in libtool were patched t=
o use `-Fe` for MSVC in libtool=0A2.5.0 but one seems to have been missed. =
I've attached a patch against=0Acurrent libtool git master (b08cb0a06da153=
372dac8d184d24e7edfff2a209).=0A=0AI've tested this patch in Xapian's CI wit=
h MSVC 2017, 2019, 2022 and 2026 -=0Athe warnings are gone and the builds a=
ll work.=0A=0A=0A=0A=0A=0A=0A=0A _______________________________________=
________________=0AFile Attachments:=0A=0AName: libtool-use-Fe-when-LTCC-is=
-MSVC.patch Size: 629B=0A=0A<https://file.savannah.gnu.org/file/libtool-use=
-Fe-when-LTCC-is-MSVC.patch?file_id=3D58607>=0A=0A=0A=0A AGPL NOTICE=0A=
=0AThese attachments are served by Savane. You can download the correspondi=
ng=0Asource code of Savane at=0Ahttps://savannah.gnu.org/source/savane-c369=
38be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz=0A=0A ______________________=
_________________________________=0A=0AReply to this item at:=0A=0A <https=
://savannah.gnu.org/patch/?10570>=0A=0A____________________________________=
___________=0AMessage sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1778552458=:383225
Content-Type: APPLICATION/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCagKOigAKCRCqLAuaBUf3
TqEHAP9Z8iBtpKJ7kWzI+6TmBHocMYzn1WnwjxAHtTw8THE7PgEAjOQq3XkM67NU
nmEP6aXuF5neSGvKAzmhyUW1tvJtKwY=
=2D7U
-----END PGP SIGNATURE-----
--8323329-1714636915-1778552458=:383225--