aboutsummaryrefslogtreecommitdiff
path: root/Makefile.objs
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-09-07 16:53:16 +0800
committerEduardo Otubo <otubo@redhat.com>2017-09-15 10:16:05 +0200
commitc3883e1f935bf11ef0d2b8157b0022ace3d0e77d (patch)
tree504ae879ac429d3bfe974ec05ed5c61bcf3ac205 /Makefile.objs
parent24f8cdc5722476e12d8e39d71f66311b4fa971c1 (diff)
buildsys: Move seccomp cflags/libs to per object
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>
Diffstat (limited to 'Makefile.objs')
-rw-r--r--Makefile.objs2
1 files changed, 2 insertions, 0 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