On Wed, 13 Jan 2021, Martin Storsjö wrote:

> I haven't spent a lot of more time on it unfortunately, but I think my
> concluding thoughts were that it seems hard to get to work properly in this
> particular setup: As long as there's callbacks for both emutls for the
> allocations, and for __cxa_thread_atexit, they need to be handled by the same
> DLL, otherwise it's essentially impossible to guarantee that they run in the
> right order. Do you agree about that conclusion?

Yes.

> The pragmatic path forward in that case, I think, would to add a configure
> option to mingw-w64-crt for optionally enabling the __cxa_thread_atexit
> function. So if that's omitted from mingw-w64-crt, a new build of libstdc++
> would include their version of it instead, and it should work as it used to,
> for better and worse.
>
> Having an optional component there isn't very nice, but would be at least some
> kind of practical way forward here. What do you think?

That's unfortunate, but probably the best option.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to