curl-library
RE: Cross-compiling linux to windows and OpenSSL
Date: Sun, 28 Dec 2014 20:24:02 +0000
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
Received on 2014-12-28