On Sunday 15 February 2026 15:39:40 Kirill Makurin wrote: > Pali Rohár <[email protected]> wrote: > > By observing this behavior, my idea was that it is because of library > > linking order, which is hardcoded in gcc spec file. > > I feel like adding --start-group/--end-group around mingw-w64's -l flags in > gcc spec should be a good solution.
That would be hard because gcc has definitions of -l flags in different sections and it combines sections together based on output target. > > And that it is better if the msvcrt/ucrt import library does not call > > functions from libmingwex.a library. > > IMO, this will be somewhat annoying as we will have to keep track of where a > function comes from when we call it. This may get pretty bad over time. I agree, but I do not have a solution for it, except get rid of libmingwex.a. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
