[sr #111245] MSVC removes MAGIC_EXE when -Gw or -GL is specified
robUx4 <[email protected]> Mon, 15 Jun 2026 03:47:30 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <[email protected]> |
--8323329-1714636915-1781509650=:3823431 Content-Type: TEXT/plain; CHARSET=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: inline Follow-up Comment #1, sr #111245 (group libtool):=0A=0AI got the same issue= with LLVM-mingw when using `-flto`. Using this patch=0A(i.e. the second pr= oposal) fixes it:=0A=0A> ---=0A> build-aux/ltmain.in | 2 ++=0A> 1 file chan= ged, 2 insertions(+)=0A> =0A> diff --git a/build-aux/ltmain.in b/build-aux/= ltmain.in=0A> index ffd4c716..bf927f0c 100644=0A> --- a/build-aux/ltmain.in= =0A> +++ b/build-aux/ltmain.in=0A> @@ -3994,6 +3994,8 @@ main (int argc, ch= ar *argv[])=0A> =0A> int i;=0A> =0A> + (void) MAGIC_EXE;=0A> +=0A> program= _name =3D (char *) xstrdup (base_name (argv[0]));=0A> newargz =3D XMALLOC (= char *, (size_t) argc + 1);=0A> =0A> -- =0A=0A=0A=0A=0A ________________= _______________________________________=0A=0AReply to this item at:=0A=0A = <https://savannah.gnu.org/support/?111245>=0A=0A___________________________= ____________________=0AMessage post=C3=A9 via Savannah=0Ahttps://savannah.g= nu.org/=0A --8323329-1714636915-1781509650=:3823431 Content-Type: APPLICATION/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCai+uEgAKCRCqLAuaBUf3 TvINAQClpjGbxLQDsV4R/TovbF+vuDktHVBVJ7nWfJzc9iJlUwD+LtFrKIR5gITA 4I2g2STwkPMCAPIqht2K3gNPesXVMgE= =xeVC -----END PGP SIGNATURE----- --8323329-1714636915-1781509650=:3823431--