[PATCH] Support thread cleanup without mingwm10.dll

Brian Dessent brian@dessent.net
Tue Aug 19 03:49:00 GMT 2008


Charles Wilson wrote:

> then the solution for those folks is to link against, and ship, the
> shared libgcc_s_1.dll, instead of against the mingwm10.dll.  Then (a)
> they don't leak, and (b) they don't rely on static TLS callbacks, so it
> still works on 9x/Me -- if I understand Aaron's original message.

But that's not what the patch does -- it requires the static TLS
callback regardless of whether shared or static libgcc is used.  The
DllMain() DLL_THREAD_DETACH notification method used by mingwm10.dll is
gone completely.

Brian



More information about the Gcc-patches mailing list