May 12, 2016 Re: Adding support for mingw-w64 and winpthread | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vincent R | Am Wed, 11 May 2016 09:26:12 +0000 schrieb Vincent R <lol@dlang.org>: > On Wednesday, 30 March 2016 at 12:05:27 UTC, Vincent R wrote: > > On Wednesday, 30 March 2016 at 11:44:41 UTC, Johannes Pfau wrote: > >> Am Wed, 30 Mar 2016 08:27:27 +0000 > >> schrieb Vincent R <lol@dlang.org>: > >> > >>> [...] > >> > >> Known problem, I'll probably push a fix to master for this soon. Linking -lws2_32 -lwsock32 is the correct workaround, but the libraries must be specified in the correct order regarding libphobos IIRC. > >> > >> Try > >> gdc -nophoboslib -lws2_32 -lwsock32 -lgphobos2 > >> or > >> gdc -nophoboslib -lgphobos2 -lws2_32 -lwsock32 > >> > >> One of these should work ;-) > > > > Thanks the second option works. > > Is there any progress for mingw ? Have you fixed what you wanted > to about tls , link order, ... ? > I am asking because as long as it's not done it cannot be push > upstream and cannot be tested. > I posted a fix for the link order issue at https://github.com/D-Programming-GDC/GDC/pull/181 (and https://github.com/D-Programming-GDC/GDC/pull/182 ). We're still looking for a better solution though, so it hasn't been merged yet. I'll push a fix for the TLS issue once we have finished the shared library support (as these problems are related). The next step for shared library support is pulling https://github.com/D-Programming-GDC/GDC/pull/192 BTW: We updated to a new druntime/phobos version (2.067) which broke some more MinGW stuff. So there's some work to do... |
Copyright © 1999-2021 by the D Language Foundation