From b4015e3f96fc430029a37e94edc151e16727e8f1 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Fri, 12 Nov 2021 06:51:36 -0700 Subject: [PATCH] automake: Link libcgset with libcgroup When linking with the -Wl,--no-undefined flag enabled, libcgset fails due to undefined symbols. Fix this by enabling this flag and linking with libcgroup.la Closes: https://github.com/libcgroup/libcgroup/issues/66 Signed-off-by: Tom Hromatka --- src/tools/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am index dc8ec9d4..3d6481d1 100644 --- a/src/tools/Makefile.am +++ b/src/tools/Makefile.am @@ -27,6 +27,7 @@ cgcreate_CFLAGS = $(CODE_COVERAGE_CFLAGS) libcgset_la_SOURCES = cgset.c tools-common.c tools-common.h libcgset_la_LIBADD = $(CODE_COVERAGE_LIBS) libcgset_la_CFLAGS = $(CODE_COVERAGE_CFLAGS) -DSTATIC= -DUNIT_TEST +libcgset_la_LDFLAGS = -Wl,--no-undefined $(LDADD) cgset_SOURCES = cgset.c tools-common.c tools-common.h cgset_LIBS = $(CODE_COVERAGE_LIBS) -- 2.47.2