2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 18:43:33 +00:00

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: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Dwight Engen
2012-11-28 16:51:37 -05:00
committed by Stéphane Graber
parent 89573feb5b
commit 5f29734f7d

View File

@@ -1,6 +1,6 @@
if ENABLE_TESTS
LDADD = ../lxc/liblxc.so -lrt
LDADD = ../lxc/liblxc.so -lpthread
lxc_test_containertests_SOURCES = containertests.c
lxc_test_locktests_SOURCES = locktests.c
lxc_test_startone_SOURCES = startone.c