[Mingw-w64-public] static debug stl crash on exit with global variable

2015-05-08 Thread Norbert Pfeiler
Hi all, i have a nice issue for you, took us hours to track down. Compile and run the following with a mingw build with Thread model: posix. #include std::vector global; int main() { std::vector vec; } g++ -static -D_GLIBCXX_DEBUG main.cpp && a.exe results in a __gnu_cxx::__concurrence_loc

Re: [Mingw-w64-public] building winpthreads dll fails when building cross compiler

2015-05-08 Thread Ozkan Sezer
On 5/8/15, Kai Tietz wrote: > Patch is ok. Could someone please apply. > > Thanks, > Kai > Applied to master, cherry-pick'ed into v4.x and v3.x, and pushed. -- O.S. > 2015-05-08 11:24 GMT+02:00 Luke Allardyce : >> It turns out the flag was specified incorrectly, libtool apparently >> requires

Re: [Mingw-w64-public] building winpthreads dll fails when building cross compiler

2015-05-08 Thread Kai Tietz
Patch is ok. Could someone please apply. Thanks, Kai 2015-05-08 11:24 GMT+02:00 Luke Allardyce : > It turns out the flag was specified incorrectly, libtool apparently > requires compiler options to be prefixed with -Wc, the attached patch > fixes the issue. > > On 8 May 2015 at 14:31, Luke Allard

Re: [Mingw-w64-public] building winpthreads dll fails when building cross compiler

2015-05-08 Thread Luke Allardyce
It turns out the flag was specified incorrectly, libtool apparently requires compiler options to be prefixed with -Wc, the attached patch fixes the issue. On 8 May 2015 at 14:31, Luke Allardyce wrote: > One of the commits for Makefile.am has > > winpthreads doesn't depend on libpthread. We only