[lxc-devel] [PATCH] tests/Makefile.am: Update for bionic
Stéphane Graber
stgraber at ubuntu.com
Thu Jan 3 19:07:46 UTC 2013
-lpthread doesn't exist and isn't necessary on bionic.
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
src/tests/Makefile.am | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index fa61f70..90fcafe 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -1,6 +1,11 @@
if ENABLE_TESTS
-LDADD = ../lxc/liblxc.so -lpthread
+LDADD = ../lxc/liblxc.so
+
+if !IS_BIONIC
+LDADD += -lpthread
+endif
+
lxc_test_containertests_SOURCES = containertests.c
lxc_test_locktests_SOURCES = locktests.c
lxc_test_startone_SOURCES = startone.c
--
1.8.0
More information about the lxc-devel
mailing list