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 <tom.hromatka@oracle.com>
(cherry picked from commit
b4015e3f96fc430029a37e94edc151e16727e8f1)
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)