From a627951dde50ef5d54e5ec70707b527b271fa154 Mon Sep 17 00:00:00 2001 From: Peter Hunt Date: Mon, 25 Jul 2022 13:00:32 -0400 Subject: [PATCH] meson: build with seccomp if available Signed-off-by: Peter Hunt --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 7396f53c..336e48f3 100644 --- a/meson.build +++ b/meson.build @@ -34,6 +34,10 @@ add_project_arguments('-Os', '-Wall', '-Werror', language : 'c') glib = dependency('glib-2.0') +seccomp = dependency('libseccomp', version : '>= 2.5.2') +if seccomp.found() + add_project_arguments('-DUSE_SECCOMP=1', language : 'c') +endif cc = meson.get_compiler('c') null_dep = dependency('', required : false) @@ -86,7 +90,7 @@ executable('conmon', 'src/utils.h', 'src/seccomp_notify.c', 'src/seccomp_notify.h'], - dependencies : [glib, libdl, sd_journal], + dependencies : [glib, libdl, sd_journal, seccomp], install : true, install_dir : join_paths(get_option('libexecdir'), 'podman'), )