summaryrefslogtreecommitdiffstats
path: root/src/sysusers
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-11-12 19:30:38 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-13 00:21:33 +0100
commite2f82f61510ac8cea86a32d269df346e24c55c3a (patch)
treeedd148a7b06208fe91b92d71fca48ebd8a32b5c4 /src/sysusers
parentrun0: when changing privileges to non-root, do not show superhero emoji (diff)
downloadsystemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.tar.xz
systemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.zip
various: check meson feature flag early
Prompted by https://github.com/systemd/systemd/pull/35110#discussion_r1835885340
Diffstat (limited to 'src/sysusers')
-rw-r--r--src/sysusers/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sysusers/meson.build b/src/sysusers/meson.build
index 403d82a340..123ff41d3f 100644
--- a/src/sysusers/meson.build
+++ b/src/sysusers/meson.build
@@ -1,16 +1,18 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
+if conf.get('ENABLE_SYSUSERS') != 1
+ subdir_done()
+endif
+
executables += [
executable_template + {
'name' : 'systemd-sysusers',
'public' : true,
- 'conditions' : ['ENABLE_SYSUSERS'],
'sources' : files('sysusers.c'),
},
executable_template + {
'name' : 'systemd-sysusers.standalone',
'public' : have_standalone_binaries,
- 'conditions' : ['ENABLE_SYSUSERS'],
'sources' : files('sysusers.c'),
'c_args' : '-DSTANDALONE',
'link_with' : [