[PATCH] Support thread cleanup without mingwm10.dll

Charles Wilson cygwin@cwilson.fastmail.fm
Tue Aug 19 03:13:00 GMT 2008


> "Aaron W. LaFramboise" wrote:
> 
>> This patch removes the requirement the -mthread be passed to link
>> against mingwm10.dll if multithreaded exceptions are desired.
> 
> The thing about using the PE static TLS callback is that it won't work
> for 9x/ME where the current method does. 

Well, if you're talking about folks that were already compiling their
application with a dynamic dependency on mingwm10.dll, and thus were NOT
shipping a "single monolithic executable" as so many mingw users seem to
desire...

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.

--
Chuck





More information about the Gcc-patches mailing list