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

                 Summary: ltmain.in: reference MAGIC_EXE in the main
                   Group: GNU Libtool
               Submitter: robux4
               Submitted: lun. 15 juin 2026 07:50:00
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: lun. 15 juin 2026 07:50:00     By: robUx4 <robux4>
It fixes .exe detection with LLVM-mingw when -flto is used and also #111245.

"__attribute__((externally_visible)) volatile" doesn't seem to be enough.
The symbol is stripped anyway.
It's also stripped during linking when __attribute__((visibility("default")))
is used.

Referencing the string in the main() seems to do the trick, even when compiled
with -O2 or -Os.







    _______________________________________________________
File Attachments:

Name: 0001-ltmain.in-reference-MAGIC_EXE-in-the-main.patch Size: 984o

<https://file.savannah.gnu.org/file/0001-ltmain.in-reference-MAGIC_EXE-in-the-main.patch?file_id=58719>



    AGPL NOTICE

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to