curl-library
Re: Cross-compiling linux to windows and OpenSSL
Date: Sun, 28 Dec 2014 23:43:12 +0100
This is out of my area of expertise, but I've tried option a) and it
doesn't seem to solve it. I mean, with that -lgdi32 still shows up before
-lssl -lcrypto . So unfortunately I still have the same problem.
Kind regards,
Félix Robles
On Sun, Dec 28, 2014 at 9:24 PM, Steve Holme <steve_holme_at_hotmail.com>
wrote:
> On Sun, 28 Dec 2014, Gisle Vanem wrote:
>
> > '-lgdi32' must come after the libs using it. So:
> > -L/usr/local/ssl/lib ../lib/.libs/libcurl.a -lssl -lcrypto -lgdi32
> -lws2_32
> >
> > should work. No idea why that isn't done already.
>
> I'm certainly no configure expert, and don’t run MinGW either, but looking
> at configure.ac something's doesn’t quite seem right to me.
>
> Assuming at line 1467 that $LIBS contains -lssl:
>
> LIBS="$SSL_LIBS $LIBS"
>
> Then when it comes to perform the Msys/MinGW specific stuff a few line
> later then it adds gdi32 in the wrong order at line 1479:
>
> LIBS="-lgdi32 $LIBS"
>
> I think either:
>
> a) Modifying the above line to:
>
> LIBS="$LIBS -lgdi32"
>
> b) Making sure the Msys/MinGW specific block happens first (before the
> pkgcfg tests
>
> Kind Regards
>
> Steve
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-28