"DllMain" function in static libraries (mingw32-glib2-static)

Erik van Pienbroek erik at vanpienbroek.nl
Sun Mar 24 16:03:07 UTC 2013


Erik van Pienbroek schreef op za 23-03-2013 om 11:55 [+0100]:
> Gavin Smith schreef op za 23-03-2013 om 09:04 [+0000]:
> 
> > $ nm /usr/i686-w64-mingw32/sys-root/mingw/lib/libglib-2.0.a | grep
> > DllMain
> > 00000240 T _DllMain at 12
>
> I can fix the glib case, but for libgsf please file a bug at
> http://redhat.bugzilla.com against the mingw-libgsf component so that
> its package maintainer can fix it.

An updated mingw-glib2 package which shouldn't have a DllMain in the
static library any more can be found at
http://koji.fedoraproject.org/koji/buildinfo?buildID=405366
Can you try if this resolves the issue for you?

If this resolves your issue and doesn't introduce other side effects
then I can propose the patch upstream. The patch itself can be found at
http://pkgs.fedoraproject.org/cgit/mingw-glib2.git/plain/glib-prefer-constructors-over-DllMain.patch

Regards,

Erik van Pienbroek




More information about the mingw mailing list