From 2fc4ef54ec61e98e757a49719b859d8ee59af952 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Wed, 3 Sep 2014 15:47:19 +0200 Subject: [PATCH] Add -lgpg-error to .pc to facilitate static linking Note that this patch is Debian-specific as we know that libssh2 is linked to gcrypt. Patching configure.ac to add gpg-error as a dependent library is not good, as it would cause overlinking of libssh2, and there is no separate variable for "static dependencies". All this mess ought to be solved in gcrypt inself by providing .pc file, but it is not. Forwarded: not-needed --- a/libssh2.pc.in +++ b/libssh2.pc.in @@ -17,5 +17,5 @@ Requires: @LIBSSH2_PC_REQUIRES@ Requires.private: @LIBSSH2_PC_REQUIRES_PRIVATE@ Libs: -L${libdir} -lssh2 @LIBSSH2_PC_LIBS@ -Libs.private: @LIBSSH2_PC_LIBS_PRIVATE@ +Libs.private: @LIBSSH2_PC_LIBS_PRIVATE@ -lgpg-error Cflags: -I${includedir}