]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix build with --enable-tests on Fedora
authorDwight Engen <dwight.engen@oracle.com>
Wed, 28 Nov 2012 21:51:37 +0000 (16:51 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 29 Nov 2012 15:28:06 +0000 (10:28 -0500)
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>
src/tests/Makefile.am

index f4e4a5a218ca47b9271171afff6e7a3d861428d7..fa61f705827c5661f4585f7d778c8a373d1654f0 100644 (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