[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] lib: Add thread-safety to global list of handles.



Richard W.M. Jones wrote:
> $(LIBTHREAD) and $(LTLIBTHREAD) are empty in libguestfs, which I think
> it right (I don't want libguestfs to unconditionally depend on
> -lpthread).
...
> Subject: [PATCH] lib: Link with $(LTLIBTHREAD), required by Gnulib lock module.

Looks fine.

> ---
>  src/Makefile.am |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index c3b7392..62a94c4 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -115,9 +115,11 @@ libguestfs_la_SOURCES = \
>  	guestfs-protocol.h \
>  	gettext.h
>
> +libguestfs_la_LIBADD = $(LTLIBTHREAD)
> +
>  # Make libguestfs include the convenience library.
>  noinst_LTLIBRARIES = libprotocol.la
> -libguestfs_la_LIBADD = libprotocol.la
> +libguestfs_la_LIBADD += libprotocol.la
>
>  libguestfs_la_CFLAGS = \
>    -DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"' \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]