Il 20/03/2012 10:35, Roy Tam ha scritto: > 2012/3/20 Stefan Weil <932...@bugs.launchpad.net>: >> Please try a newer compiler. gcc-4.6.2 compiles thread local storage >> correctly, gcc-4.3.3 obviously doesn't. >> If you can confirm that newer compilers fix this bug, I'd like to close this >> ticket. > > I'm using gcc-4.6.2 now.
Please test this suggestion: >>> Please try these modified configure option which adds the compiler flag >>> needed for multithreading: >>> --extra-cflags="-O0 -pipe -mthreads". For me, -mthreads solved the problem. >> >> Yes "-mthreads" switch does workaround the issue. >> But using "-mthreads" making resulting binaries depend on >> mingwm10.dll, which is not good. > > Is "-D_MT" enough instead of -mthreads? Paolo