[libvirt] [PATCHv2] build: avoid -lgcrypt with newer gnutls
Eric Blake
eblake at redhat.com
Sat Jul 27 03:37:19 UTC 2013
On 07/26/2013 07:22 PM, Doug Goldstein wrote:
> It appears it was an optional cutover and I guess Gentoo made the
> plunge. Another idea, that you might hate would be to use pkg-config
> directly and pass --static so we can get the private libraries. I'm
> not running Fedora 19 yet so the best I can do is give you Fedora 18
> as a comp, but that works out great since its using 2.12.23 as well.
>
> stable Gentoo:
>
> Name: GnuTLS
> Description: Transport Security Layer implementation for the GNU system
> URL: http://www.gnu.org/software/gnutls/
> Version: 2.12.23
> Libs: -L${libdir} -lgnutls
> Libs.private: -L/usr/lib64 -lnettle -lgmp -lhogweed
> Requires.private: libtasn1 , zlib
> Cflags: -I${includedir}
>
> $ pkg-config --libs --static gnutls
> -lgnutls -ltasn1 -lz -lnettle -lgmp -lhogweed
>
> Fedora 18:
>
> Name: GnuTLS
> Description: Transport Security Layer implementation for the GNU system
> URL: http://www.gnu.org/software/gnutls/
> Version: 2.12.23
> Libs: -L${libdir} -lgnutls
> Libs.private: -L/usr/lib64 -lgcrypt -L/usr/lib64 -lgpg-error
> Requires.private: libtasn1 , zlib, p11-kit-1
> Cflags: -I${includedir}
>
> $ pkg-config --libs --static gnutls
> -lgnutls -lgcrypt -lgpg-error -ltasn1 -lz -lp11-kit
>
> With GnuTLS 3.2 I get the following:
>
> pkg-config --libs --static gnutls
> -lgnutls -lhogweed -lnettle -lz -lgmp
>
>
> Maybe that helps?
Unfortunately, no:
Fedora 19:
$ pkg-config --libs --static gnutls
-lgnutls -lnettle -lhogweed -lgmp -lpthread -ltasn1 -lp11-kit -lz
Correct - nettle instead of gcrypt.
RHEL 6.4:
$ pkg-config --libs --static gnutls
-lgnutls -ltasn1
Ouch - no mention of gcrypt, even though this version still used gcrypt.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130726/385b324e/attachment-0001.sig>
More information about the libvir-list
mailing list