[patch #10579] ltmain.in: reference MAGIC_EXE in the main

robUx4 <[email protected]> Mon, 15 Jun 2026 03:50:07 -0400 (EDT)
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
--8323329-1714636915-1781509807=:3823332
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/patch/?10579>=0A=0A                 Summ=
ary: ltmain.in: reference MAGIC_EXE in the main=0A                   Group:=
 GNU Libtool=0A               Submitter: robux4=0A               Submitted:=
 lun. 15 juin 2026 07:50:00=0A                Category: None=0A            =
    Priority: 5 - Normal=0A                  Status: None=0A               =
  Privacy: Public=0A             Assigned to: None=0A        Originator Ema=
il:=0A             Open/Closed: Open=0A         Discussion Lock: Unlocked=
=0A=0A=0A    _______________________________________________________=0A=0AF=
ollow-up Comments:=0A=0A=0A------------------------------------------------=
-------=0ADate: lun. 15 juin 2026 07:50:00     By: robUx4 <robux4>=0AIt fix=
es .exe detection with LLVM-mingw when -flto is used and also #111245.=0A=
=0A"__attribute__((externally_visible)) volatile" doesn't seem to be enough=
.=0AThe symbol is stripped anyway.=0AIt's also stripped during linking when=
 __attribute__((visibility("default")))=0Ais used.=0A=0AReferencing the str=
ing in the main() seems to do the trick, even when compiled=0Awith -O2 or -=
Os.=0A=0A=0A=0A=0A=0A=0A=0A    ____________________________________________=
___________=0AFile Attachments:=0A=0AName: 0001-ltmain.in-reference-MAGIC_E=
XE-in-the-main.patch Size: 984o=0A=0A<https://file.savannah.gnu.org/file/00=
01-ltmain.in-reference-MAGIC_EXE-in-the-main.patch?file_id=3D58719>=0A=0A=
=0A=0A    AGPL NOTICE=0A=0AThese attachments are served by Savane. You can =
download the corresponding=0Asource code of Savane at=0Ahttps://git.savanna=
h.nongnu.org/cgit/administration/savane.git/snapshot/savane-c36938be85ff6c1=
b727bc7dd7fd30e48f9142870.tar.gz=0A=0A    _________________________________=
______________________=0A=0AReply to this item at:=0A=0A  <https://savannah=
.gnu.org/patch/?10579>=0A=0A_______________________________________________=
=0AMessage post=C3=A9 via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1781509807=:3823332
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCai+urwAKCRCqLAuaBUf3
TsibAQC3Lw342XLIT89LE/BwloGTwU/q/PuuB5h3hJQS+Osa3wD+PLfTp42KyCa6
nI0mw0F44ShrcEE5ATrFJxclRY7qnQM=
=AHyW
-----END PGP SIGNATURE-----

--8323329-1714636915-1781509807=:3823332--