From: Eduardo Otubo <otubo@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
Fam Zheng <famz@redhat.com>, Thomas Huth <thuth@redhat.com>,
"Daniel P . Berrange" <berrange@redhat.com>
Subject: [Qemu-devel] [PULL 06/06] buildsys: Move seccomp cflags/libs to per object
Date: Fri, 15 Sep 2017 10:41:39 +0200 [thread overview]
Message-ID: <20170915084139.4481-7-otubo@redhat.com> (raw)
In-Reply-To: <20170915084139.4481-1-otubo@redhat.com>
From: Fam Zheng <famz@redhat.com>
Like many other libraries, libseccomp cflags and libs should only apply
to the building of necessary objects. Do so in the usual way with the
help of per object variables.
Signed-off-by: Fam Zheng <famz@redhat.com>
Acked-by: Eduardo Otubo <otubo@redhat.com>
---
Makefile.objs | 2 ++
configure | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile.objs b/Makefile.objs
index 24a4ea08b8..d9cf7ad791 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -70,6 +70,8 @@ common-obj-y += backends/
common-obj-y += chardev/
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
+qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
+qemu-seccomp.o-libs := $(SECCOMP_LIBS)
common-obj-$(CONFIG_FDT) += device_tree.o
diff --git a/configure b/configure
index 9ee4559b54..94db2d103e 100755
--- a/configure
+++ b/configure
@@ -2035,8 +2035,8 @@ if test "$seccomp" != "no" ; then
if test "$libseccomp_minver" != "" &&
$pkg_config --atleast-version=$libseccomp_minver libseccomp ; then
- libs_softmmu="$libs_softmmu $($pkg_config --libs libseccomp)"
- QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags libseccomp)"
+ seccomp_cflags="$($pkg_config --cflags libseccomp)"
+ seccomp_libs="$($pkg_config --libs libseccomp)"
seccomp="yes"
else
if test "$seccomp" = "yes" ; then
@@ -5829,6 +5829,8 @@ fi
if test "$seccomp" = "yes"; then
echo "CONFIG_SECCOMP=y" >> $config_host_mak
+ echo "SECCOMP_CFLAGS=$seccomp_cflags" >> $config_host_mak
+ echo "SECCOMP_LIBS=$seccomp_libs" >> $config_host_mak
fi
# XXX: suppress that
--
2.13.5
next prev parent reply other threads:[~2017-09-15 8:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-15 8:41 [Qemu-devel] [PULL 00/06] seccomp branch queue Eduardo Otubo
2017-09-15 8:41 ` [Qemu-devel] [PULL 01/06] seccomp: changing from whitelist to blacklist Eduardo Otubo
2017-09-15 8:41 ` [Qemu-devel] [PULL 02/06] seccomp: add obsolete argument to command line Eduardo Otubo
2017-09-15 8:41 ` [Qemu-devel] [PULL 03/06] seccomp: add elevateprivileges " Eduardo Otubo
2017-09-15 8:41 ` [Qemu-devel] [PULL 04/06] seccomp: add spawn " Eduardo Otubo
2017-09-15 8:41 ` [Qemu-devel] [PULL 05/06] seccomp: add resourcecontrol " Eduardo Otubo
2017-09-15 8:41 ` Eduardo Otubo [this message]
2017-09-16 11:35 ` [Qemu-devel] [PULL 00/06] seccomp branch queue Peter Maydell
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=20170915084139.4481-7-otubo@redhat.com \
--to=otubo@redhat.com \
--cc=berrange@redhat.com \
--cc=famz@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).