[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.


Gbp-Pq: Name 0001-Add-lgpg-error-to-.pc-to-facilitate-static-linking.patch
This commit is contained in:
Mikhail Gusarov 2014-09-03 15:47:19 +02:00 committed by luoyaoming
parent a438e974ab
commit 8a647b231e
1 changed files with 1 additions and 1 deletions

View File

@ -13,5 +13,5 @@ Description: Library for SSH-based communication
Version: @LIBSSH2VER@
Requires.private: @LIBSREQUIRED@
Libs: -L${libdir} -lssh2 @LIBS@
Libs.private: @LIBS@
Libs.private: @LIBS@ -lgpg-error
Cflags: -I${includedir}