Commit 5f29734f by Dwight Engen Committed by Stéphane Graber

Fix build with --enable-tests on Fedora

When using --enable-tests on Fedora, the linker complains with: "undefined reference to symbol sem_getvalue", which nm shows to be in libpthread not librt. Build tested on Fedora, Oracle Linux, and Ubuntu. Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 89573feb
if ENABLE_TESTS if ENABLE_TESTS
LDADD = ../lxc/liblxc.so -lrt LDADD = ../lxc/liblxc.so -lpthread
lxc_test_containertests_SOURCES = containertests.c lxc_test_containertests_SOURCES = containertests.c
lxc_test_locktests_SOURCES = locktests.c lxc_test_locktests_SOURCES = locktests.c
lxc_test_startone_SOURCES = startone.c lxc_test_startone_SOURCES = startone.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment