chore(3p/nix): Clean up libseccomp_dep
(cherry picked from commit b380f75867d48e6af461513d26803b61250d9c80)
This commit is contained in:
parent
adff9913c0
commit
939cec746e
1 changed files with 7 additions and 6 deletions
11
third_party/nix/meson.build
vendored
11
third_party/nix/meson.build
vendored
|
@ -520,15 +520,16 @@ endif
|
|||
# OS Specific checks
|
||||
#============================================================================
|
||||
# Look for libsecppomp, required for Linux sandboxing.
|
||||
libseccomp_dep = ''
|
||||
if sys_name.contains('linux')
|
||||
libseccomp_dep = dependency('libseccomp', version : '>= 2.3.1', required: false)
|
||||
if not (libseccomp_dep.found())
|
||||
error('Nix requires libseccomp on a linux host system')
|
||||
endif
|
||||
libseccomp_dep = dependency(
|
||||
'libseccomp',
|
||||
version : '>= 2.3.1',
|
||||
not_found_message : 'Nix requires libseccomp on a linux host system')
|
||||
config_h.set(
|
||||
'HAVE_SECCOMP', 1,
|
||||
description : 'Whether seccomp is available and should be used for sandboxing.')
|
||||
else
|
||||
libseccomp_dep = dependency('', required: false)
|
||||
endif
|
||||
|
||||
if (sys_name.contains('freebsd'))
|
||||
|
|
Loading…
Reference in a new issue