daemon: Build with -pthread
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 11 Sep 2021 08:27:17 +0000 (09:27 +0100)
committerHilko Bengen <bengen@debian.org>
Sat, 25 Sep 2021 15:51:52 +0000 (16:51 +0100)
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

daemon/Makefile.am

index 92e5aa400c597e8993db96c4b5b64e40e3b527ef..cbf5a953bf52c55e946852a06373698ddda33e32 100644 (file)
@@ -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) \