(CC'ing Pali, AFAIK he's not subscribed to the list)

Using /GL with libtool seems impossible, I tried it with some other projects. 
So, it would be a bit tricky to test.

The problem is that configuration for libtool tries to figure out what program 
NM is and parse its output. It will fail to do it if you use /GL compiler flag, 
this in turn will result in libtool failing in its link step when generating 
DLL.

- Kirill Makurin
________________________________
From: Antonin Décimo <[email protected]>
Sent: Monday, September 22, 2025 10:13 PM
To: [email protected] 
<[email protected]>
Subject: Re: [Mingw-w64-public] [PATCH 1/6] winpthreads: Remove additional 
declaration of __xl_f variable

IIRC declaring the variable extern was suggested somewhere online to
prevent the linker from removing it, especially when LTO gets
involved. If you're feeling brave, you could test winpthreads + MSVC
and its /GL [0] or /LTGC [1] flags.

[0]: 
https://learn.microsoft.com/en-us/cpp/build/reference/gl-whole-program-optimization?view=msvc-170
[1]: 
https://learn.microsoft.com/en-us/cpp/build/reference/ltcg-link-time-code-generation?view=msvc-170

-- Antonin


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to