From: Richard W.M. Jones Date: Sat, 11 Sep 2021 08:27:17 +0000 (+0100) Subject: daemon: Build with -pthread X-Git-Tag: archive/raspbian/1%1.46.2-4+rpi1~1^2^2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=588434477ebd648fafb0aec1a24e6671b10d143e;p=libguestfs.git daemon: Build with -pthread The daemon failed to link with glibc < 2.34 because we didn't include the separate pthread library. Adding -pthread fixes this. Note this change was also make upstream in commit 733d2182b6 ("Remove the tools.") although I think either by accident or unrelated. Reported-by: Toolybird Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2003326 Gbp-Pq: Name daemon-Build-with-pthread.patch --- diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 92e5aa40..cbf5a953 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -256,6 +256,7 @@ guestfsd_CPPFLAGS = \ -I$(top_srcdir)/common/utils \ -I$(top_builddir)/common/utils guestfsd_CFLAGS = \ + -pthread \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \ $(RPC_CFLAGS) \ $(AUGEAS_CFLAGS) \