From: "Daniel P. Berrange" <berrange@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 3/3] buildsys: Move gcrypt cflags/libs to per object
Date: Wed, 6 Sep 2017 09:56:26 +0100 [thread overview]
Message-ID: <20170906085626.GG15510@redhat.com> (raw)
In-Reply-To: <20170906074418.10903-4-famz@redhat.com>
On Wed, Sep 06, 2017 at 03:44:18PM +0800, Fam Zheng wrote:
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
> configure | 5 ++---
> crypto/Makefile.objs | 7 +++++++
> 2 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/configure b/configure
> index 6d90e73a8b..b37cd54bda 100755
> --- a/configure
> +++ b/configure
> @@ -2565,9 +2565,6 @@ if test "$gcrypt" != "no"; then
> then
> gcrypt_libs="$gcrypt_libs -lgpg-error"
> fi
> - libs_softmmu="$gcrypt_libs $libs_softmmu"
> - libs_tools="$gcrypt_libs $libs_tools"
> - QEMU_CFLAGS="$QEMU_CFLAGS $gcrypt_cflags"
> gcrypt="yes"
> if test -z "$nettle"; then
> nettle="no"
> @@ -5715,6 +5712,8 @@ if test "$gnutls_rnd" = "yes" ; then
> fi
> if test "$gcrypt" = "yes" ; then
> echo "CONFIG_GCRYPT=y" >> $config_host_mak
> + echo "GCRYPT_CFLAGS=$gcrypt_cflags" >> $config_host_mak
> + echo "GCRYPT_LIBS=$gcrypt_libs" >> $config_host_mak
> if test "$gcrypt_hmac" = "yes" ; then
> echo "CONFIG_GCRYPT_HMAC=y" >> $config_host_mak
> fi
> diff --git a/crypto/Makefile.objs b/crypto/Makefile.objs
> index 0cb5fa24b6..45f7c0c80d 100644
> --- a/crypto/Makefile.objs
> +++ b/crypto/Makefile.objs
> @@ -34,6 +34,13 @@ crypto-obj-y += block.o
> crypto-obj-y += block-qcow.o
> crypto-obj-y += block-luks.o
>
> +$(if $(CONFIG_GCRYPT), \
> + $(foreach x, init cipher hash-gcrypt hmac-gcrypt random-gcrypt \
> + pbkdf-gcrypt, \
> + $(eval $x.o-cflags := $(NETTLE_CFLAGS)) \
> + $(eval $x.o-libs := $(NETTLE_LIBS))) \
> +)
> +
> $(if $(CONFIG_NETTLE), \
> $(foreach x, cipher hash-nettle hmac-nettle pbkdf-nettle, \
> $(eval $x.o-cflags := $(NETTLE_CFLAGS)) \
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2017-09-06 8:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-06 7:44 [Qemu-devel] [PATCH v3 0/3] buildsys: Move crypto libraries to per object variables Fam Zheng
2017-09-06 7:44 ` [Qemu-devel] [PATCH v3 1/3] buildsys: Move nettle cflags/libs to per object Fam Zheng
2017-09-06 8:55 ` Daniel P. Berrange
2017-09-06 9:30 ` Fam Zheng
2017-09-06 7:44 ` [Qemu-devel] [PATCH v3 2/3] buildsys: Move gnutls " Fam Zheng
2017-09-06 8:56 ` Daniel P. Berrange
2017-09-06 7:44 ` [Qemu-devel] [PATCH v3 3/3] buildsys: Move gcrypt " Fam Zheng
2017-09-06 8:56 ` Daniel P. Berrange [this message]
2017-09-06 9:25 ` Fam Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170906085626.GG15510@redhat.com \
--to=berrange@redhat.com \
--cc=famz@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.