Il 12/04/2012 18:31, Stefan Weil ha scritto: > Am 12.04.2012 12:18, schrieb Paolo Bonzini: >> Il 12/04/2012 12:13, Kevin Wolf ha scritto: >>> I guess it's this non-thread-local TLS once again, basically a >>> compiler bug. >>> >>> Paolo, wasn't there a compiler option that works around the problem? >>> >> I asked to test it (-D_MT) but never got any answer. > > I'd be surprised if defining _MT helped against compiler bugs.
Well, -mthreads fixed it, and it should be the same as -D_MT -lmingwthrd. But we shouldn't need libmingwthrd, or do we? Paolo > It will change the declaration of some functions in stdio.h, > but the buggy compiler will still not create TLS.