Skip to content

Commit

Permalink
meson: build with seccomp if available
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hunt <[email protected]>
  • Loading branch information
haircommander committed Jul 25, 2022
1 parent daeaf97 commit a627951
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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'),
)

0 comments on commit a627951

Please sign in to comment.