Web lists-archives.com

Re: [Mingw-users] Using mingw's libpng?

> From: Paul Moore <p.f.moore@xxxxxxxxx>
> Date: Thu, 7 Jul 2016 09:01:20 +0100
> Cc: mathog@xxxxxxxxxxx, Mingw <mingw-users@xxxxxxxxxxxxxxxxxxxxx>
> On 7 July 2016 at 03:40, Eli Zaretskii <eliz@xxxxxxx> wrote:
> >> From: Paul Moore <p.f.moore@xxxxxxxxx>
> >> Date: Wed, 6 Jul 2016 23:58:14 +0100
> >> Cc: Eli Zaretskii <eliz@xxxxxxx>
> >>
> >> If you want to go down this route (again, not advised and not
> >> supported!) then your best bet would be to build the extension with
> >> mingw, and statically link a copy of libpng that was also built with
> >> mingw.
> >
> > I don't think this can be done on Windows.  Can you show a command
> > line that does this and works?
> I'm afraid I can't, for Python extensions most of the work is done by
> distutils. But I believe that some extension projects (some of the
> scientific Python stack) do this. As noted by mathog, though,
> distutils forces -lmsvcr90, which avoids most, if not all, of the CRT
> incompatibility issues - something I'd forgotten, it's been a long
> time since I did anything with the distutils mingw support..

I think the GNU linker will refuse to link a DLL against a static
library, but maybe I'm mistaken.  Libtool certainly does, AFAIR.

Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe