Skip to content

Commit

Permalink
Merge pull request #4246 from ffontaine/master
Browse files Browse the repository at this point in the history
src/lxc/meson.build: fix build without apparmor
  • Loading branch information
brauner committed Jan 5, 2023
2 parents 1641f45 + 70b176b commit 440727e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lxc/meson.build
Expand Up @@ -32,7 +32,6 @@ liblxc_sources = files(
'cgroups/cgroup2_devices.h',
'cgroups/cgroup_utils.c',
'cgroups/cgroup_utils.h',
'lsm/apparmor.c',
'lsm/lsm.c',
'lsm/lsm.h',
'lsm/nop.c',
Expand Down Expand Up @@ -140,6 +139,10 @@ liblxc_sources = files(
'uuid.c',
'uuid.h')

if want_apparmor and libapparmor.found()
liblxc_sources += files('lsm/apparmor.c')
endif

if want_seccomp and libseccomp.found()
liblxc_sources += files('seccomp.c')
endif
Expand Down

0 comments on commit 440727e

Please sign in to comment.