2014-11-26 13:04 GMT+01:00 Erik de Castro Lopo <[email protected]>:
> [email protected] wrote:
>
> >
> > Did you try adding just -static to the link command?
>
> Just now. With -static it makes everything static, including the
> library I'm trying to build as a DLL.
>
That's because you typically link DLLs to DLLs and not to static libraries.
This is a Bad Idea™, but try something like "-Wl,-Bstatic -lgcc -lgcc_eh
-Wl,-Bdnamic", which is what options like -static-libgcc will do. Note that
this may result in double defintion errors for libgcc symbols due to any
linking to this DLL will also pull in libgcc_s which conflicts with
libgcc_eh if I'm not mistaken. As expected, and also why this is a bad idea.
Ruben
>
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public