www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: libssh2.pc lacks Requires

libssh2.pc lacks Requires

From: Guenter <lists_at_gknw.net>
Date: Mon, 23 Apr 2012 01:06:28 +0200

while on pkg-config stuff I just found that we currently miss to add the
proper crypto lib dependencies to the libssh2.pc file; we should have a
line like this (f.e. for libssh2 build with OpenSSL):
Requires: libssl,libcrypto

I've just committed a fix for this; please test!

Also Vincent Torri suggested this on the libcurl list (where I mentioned
the prob 1st in another context):
use Requires.private if pkg-config is sufficiently recent. We do this:

in configure.ac:

if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then

in the .pc.in file:

@pkgconfig_requires_private@: @requirement@

(where requirements is an AC_SUBST'ed variable containing the needed

I've no idea yet why we should prefer Requires.private over Requires and
whats the difference/benefit ...

comments welcome!


libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-23

the libssh2 team