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

Richard W.M. Jones rjones at redhat.com
Mon Dec 7 11:29:45 UTC 2009


Is this right?

$(LIBTHREAD) and $(LTLIBTHREAD) are empty in libguestfs, which I think
it right (I don't want libguestfs to unconditionally depend on
-lpthread).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
-------------- next part --------------
>From 6ebd99b8546a8b514135e5e0a2fc68cea93f5444 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Mon, 7 Dec 2009 11:28:21 +0000
Subject: [PATCH] lib: Link with $(LTLIBTHREAD), required by Gnulib lock module.

---
 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"' \
-- 
1.6.5.2



More information about the Libguestfs mailing list