1 From 2fc4ef54ec61e98e757a49719b859d8ee59af952 Mon Sep 17 00:00:00 2001
2 From: Mikhail Gusarov <dottedmag@dottedmag.net>
3 Date: Wed, 3 Sep 2014 15:47:19 +0200
4 Subject: [PATCH] Add -lgpg-error to .pc to facilitate static linking
6 Note that this patch is Debian-specific as we know that libssh2 is linked
9 Patching configure.ac to add gpg-error as a dependent library is not good, as it
10 would cause overlinking of libssh2, and there is no separate variable for
11 "static dependencies".
13 All this mess ought to be solved in gcrypt inself by providing .pc file,
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 Index: libssh2/libssh2.pc.in
21 ===================================================================
22 --- libssh2.orig/libssh2.pc.in
23 +++ libssh2/libssh2.pc.in
24 @@ -13,5 +13,5 @@ Description: Library for SSH-based commu
26 Requires.private: @LIBSREQUIRED@
27 Libs: -L${libdir} -lssh2 @LIBS@
29 +Libs.private: @LIBS@ -lgpg-error
30 Cflags: -I${includedir}