URL:
  <https://savannah.gnu.org/patch/?10570>

                 Summary: Avoid using deprecated MSVC -o option
                   Group: GNU Libtool
               Submitter: ollybetts
               Submitted: Tue 12 May 2026 02:20:54 AM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 12 May 2026 02:20:54 AM UTC By: Olly Betts <ollybetts>
Microsoft have unhelpfully deprecated -o and MSVC emits a warning on every use
of it:

cl : Command line warning D9035 : option 'o' has been deprecated and will be
removed in a future release

The replacement when linking an executable (as here) is `-Fe` which has been
supported for a long time.  Note that there can't be a space between `-Fe` and
the output filename.

The warning is emitted by MSVC 2022 and 2026 but it seems not by older
versions.

Most uses of `-o` in libtool were patched to use `-Fe` for MSVC in libtool
2.5.0 but one seems to have been missed.  I've attached a patch against
current libtool git master (b08cb0a06da153372dac8d184d24e7edfff2a209).

I've tested this patch in Xapian's CI with MSVC 2017, 2019, 2022 and 2026 -
the warnings are gone and the builds all work.







    _______________________________________________________
File Attachments:

Name: libtool-use-Fe-when-LTCC-is-MSVC.patch Size: 629B

<https://file.savannah.gnu.org/file/libtool-use-Fe-when-LTCC-is-MSVC.patch?file_id=58607>



    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-c36938be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10570>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to