[lxc-devel] [PATCH] Link against pthread when not on bionic.

Stéphane Graber stgraber at ubuntu.com
Mon Feb 18 17:23:24 UTC 2013


dpkg spotted that we're not explicitly linking against pthread even though
we use some of its symbols (sem_*).

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 src/lxc/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
index 8974ca9..a0077aa 100644
--- a/src/lxc/Makefile.am
+++ b/src/lxc/Makefile.am
@@ -115,7 +115,7 @@ liblxc_so_LDFLAGS = \
 liblxc_so_LDADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS)
 
 if !IS_BIONIC
-liblxc_so_LDADD += -lutil -lrt
+liblxc_so_LDADD += -lutil -lrt -lpthread
 endif
 
 bin_SCRIPTS = \
-- 
1.8.1.2





More information about the lxc-devel mailing list