[gnutls-dev] gnutls pkg-config files

Andreas Metzler ametzler at downhill.at.eu.org
Sun Jun 25 09:47:21 CEST 2006

Since release 0.18 pkg-config supports Libs.private and
Requires.private to support
a) static linking
b) dynamic linking on platforms that require direct linking of all

afaiui this should do the trick:
diff -ur gnutls13-1.4.0.org/lib/gnutls.pc.in gnutls-1.4.0/lib/gnutls.pc.in
--- gnutls13-1.4.0.org/lib/gnutls.pc.in	2005-05-26 17:21:37.000000000 +0200
+++ gnutls-1.4.0/lib/gnutls.pc.in	2006-06-24 18:10:38.000000000 +0200
@@ -19,4 +19,5 @@
 Description: Transport Security Layer implementation for the GNU system
 Version: @VERSION@
 Libs: -L${libdir} -lgnutls
+Libs.private: @LIBGNUTLS_LIBS@ 
 Cflags: -I${includedir}
diff -ur gnutls13-1.4.0.org/libextra/gnutls-extra.pc.in gnutls-1.4.0/libextra/gnutls-extra.pc.in
--- gnutls13-1.4.0.org/libextra/gnutls-extra.pc.in	2005-05-26 17:16:58.000000000 +0200
+++ gnutls-1.4.0/libextra/gnutls-extra.pc.in	2006-06-25 09:35:53.758199856 +0200
@@ -20,4 +20,5 @@
 Requires: gnutls
 Version: @VERSION@
 Libs: -L${libdir} -lgnutls-extra
 Cflags: -I${includedir}

thanks, cu andreas

[1] On such platforms you'd need
  -ltasn1 -lz -lgcrypt -lnsl -lgpg-error -lgnutls for dynamic linking
instead of just -lgnutls.
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde

More information about the Gnutls-devel mailing list