]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
samples/create_systemd_scope: build when systemd is enabled
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 24 May 2023 06:56:39 +0000 (06:56 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 25 May 2023 19:25:33 +0000 (13:25 -0600)
create_systemd_scope sample program depends on the systemd support to be
build, and add the dependency in the Makefile.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
samples/c/Makefile.am

index 444ca545f58b8a6fc3be37e02a00124d10171390..32b3e8b1cb3f9dbe8d8cef60cffbd83c11f46b60 100644 (file)
@@ -7,7 +7,11 @@ noinst_PROGRAMS = setuid walk_test read_stats walk_task get_controller \
                  get_mount_point proctest get_all_controller           \
                  get_variable_names test_named_hierarchy               \
                  get_procs wrapper_test logger empty_cgroup_v2         \
-                 get_setup_mode create_systemd_scope
+                 get_setup_mode
+
+if WITH_SYSTEMD
+noinst_PROGRAMS += create_systemd_scope
+endif
 
 setuid_SOURCES=setuid.c
 walk_test_SOURCES=walk_test.c