curl-library
Re: [PATCH] find libssh2 with pkg-config
Date: Wed, 02 Sep 2009 13:52:18 +0200
Hi Daniel,
Daniel Stenberg schrieb:
> As I just made the libssh2 installtion install a pkg-config file, I
> thought I'd also contribute a little fix for curl's configure to find
> libssh2 using that pkg-config approach.
great! Will test asap ...
some comments to libssh2.pc.in:
pkg-config --debug libssh2
line>Name: libssh2
line>URL: http://www.libssh2.org/
line>Description: Library for SSH based connunication
line>Version: 1.0
line>Libs: -L${libdir} -lssh2
line>Libs.private:
Unknown keyword 'Libs.private' in
'/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig/libssh2.pc'
line>Cflags: -I${includedir}
so seems Libs.private is not known to pkg-config (v 0.23);
also I think the dependency to either OpenSSL or libgcrypt should be
done with a 'Requires' line, f.e.:
Name: libssh2
URL: http://www.libssh2.org/
Description: Library for SSH based connunication
Version: 1.0
Requires: libgcrypt
Libs: -L${libdir} -lssh2
Cflags: -I${includedir}
however I'm not sure what happens when pkg-config reads the above
Requires line, but then cant find a libgcrypt.pc ...
just wanted to mention what I found so far ...
Gün.
Received on 2009-09-02