mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
meson: don't build xselinux if xace is disabled
xselinux requires xace to build
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2056>
(cherry picked from commit 7b15321b3b)
This commit is contained in:
@@ -698,7 +698,7 @@ if get_option('xselinux') != 'false'
|
||||
if get_option('xselinux') == 'true'
|
||||
build_xselinux = true
|
||||
else
|
||||
build_xselinux = dep_selinux.found() and dep_audit.found()
|
||||
build_xselinux = dep_selinux.found() and dep_audit.found() and build_xace
|
||||
endif
|
||||
|
||||
if build_xselinux
|
||||
@@ -706,6 +706,10 @@ if get_option('xselinux') != 'false'
|
||||
common_dep += dep_audit
|
||||
endif
|
||||
endif
|
||||
if build_xselinux and not build_xace
|
||||
error('cannot build SELinux extension without X-ACE')
|
||||
endif
|
||||
|
||||
|
||||
socket_dep = []
|
||||
if host_machine.system() == 'windows'
|
||||
|
||||
Reference in New Issue
Block a user