2013/7/25 Haroogan <[email protected]>

>  Hey everyone,
>
> Just ran into a problem. Executables produced by latest MinGW-w64 (4.8.1)
> might depend on libwinpthread-1.dll. I'd like to get rid of this
> dependency. What I've tried so far:
>
> -Wl,-Bstatic -lpthread -Wl,-Bdynamic
>
> but out of luck. How is it even possible? Is it a known issue? Thank you.
>

This is a result of the libgcc dll depending on the libwinpthread dll if
gcc is built with posix threading (this is to enable C++11 <thread>,
<mutex>, and <future>). There is no way around this, except linking libgcc
statically using -static-libgcc (perhaps with your options above, I haven't
used this myself) or plain -static. The latter will pull in every library
as static if available though. Make sure all libraries you are pulling in
are built the same way.

Frankly, I don't see the issue with only depending on the libgcc dll or
also the winpthread dll. If you do not want this, use a non-posix threads
gcc, and instead use the win32 variant.

Ruben


>
> Kind regards,
> Haroogan
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to