Subject: Re: [1.7.0] Cannot build statically on Windows

Re: [1.7.0] Cannot build statically on Windows

From: <sisyphus1_at_optusnet.com.au>
Date: Thu, 25 Feb 2016 16:12:24 +1100

-----Original Message-----
From: sisyphus1_at_optusnet.com.au
Sent: Wednesday, February 24, 2016 3:16 PM
To: libssh2-devel_at_cool.haxx.se
Subject: [1.7.0] Cannot build statically on Windows

> Maybe it's a PEBCAK that I can't spot.

Yeah, it was pretty much a PEBCAK.

For 1.6.0 or earlier it's sufficient, in the configure script to change:

    LIBS="$LIBS -lws2_32"
to
    LIBS="$LIBS -lws2_32 -lgdi32"

but, for 1.7.0, it needs to become

    LIBS="$LIBS -lws2_32 -lgdi32 -lcrypt32"

Stupidly (and I mean *really* stupidly), I was thinking that those
unresolved references would be resolved by the shared openssl libraries -
but, of course, they are resolved by the crypt32 system library and it's
just a matter of linking to that library.

All good - sorry for the noise.

Cheers,
Rob

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-02-25