[gnutls-devel] [PATCH] Include libiconv in Libs.private

Martin Storsjö martin at martin.st
Mon Jan 21 16:35:10 CET 2013


On Mon, 21 Jan 2013, Martin Storsjo wrote:

> This makes static linking succeed if the library is configured to
> use libiconv.
> ---
> lib/gnutls.pc.in |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
> index c45f8f3..ae95e2f 100644
> --- a/lib/gnutls.pc.in
> +++ b/lib/gnutls.pc.in
> @@ -19,6 +19,6 @@ Description: Transport Security Layer implementation for the GNU system
> URL: http://www.gnu.org/software/gnutls/
> Version: @VERSION@
> Libs: -L${libdir} -lgnutls
> -Libs.private: @LTLIBNETTLE@
> +Libs.private: @LTLIBNETTLE@ @LTLIBICONV@
> @GNUTLS_REQUIRES_PRIVATE@
> Cflags: -I${includedir}
> -- 
> 1.7.9.4

Later in the quest of using this, I also stumbled upon the issue that this 
lacks -lz (@LTLIBZ@) as well - it should probably include everything from 
thirdparty_libadd in lib/Makefile.am.

// Martin



More information about the Gnutls-devel mailing list