From 72438c0cd5ffaed56bb3e177b236d0ac636f6075 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Wed, 24 May 2023 06:56:39 +0000 Subject: [PATCH] samples/create_systemd_scope: build when systemd is enabled 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 Signed-off-by: Tom Hromatka --- samples/c/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/samples/c/Makefile.am b/samples/c/Makefile.am index 444ca545..32b3e8b1 100644 --- a/samples/c/Makefile.am +++ b/samples/c/Makefile.am @@ -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 -- 2.47.2