[lxc-devel] [PATCH] Link against pthread when not on bionic.
Daniel Lezcano
daniel.lezcano at free.fr
Mon Feb 18 20:40:42 UTC 2013
On 02/18/2013 06:23 PM, Stéphane Graber wrote:
> dpkg spotted that we're not explicitly linking against pthread even though
> we use some of its symbols (sem_*).
uh ? wait.
We shouldn't link against the lib pthread.
I don't think sem_* is a symbol coming from the pthread library.
Could you give the output of dpkg ?
>
> 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 = \
More information about the lxc-devel
mailing list