summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/gloox')
-rw-r--r--net-libs/gloox/files/gloox-1.0.24-pthread-link.patch17
-rw-r--r--net-libs/gloox/gloox-1.0.24.ebuild1
2 files changed, 18 insertions, 0 deletions
diff --git a/net-libs/gloox/files/gloox-1.0.24-pthread-link.patch b/net-libs/gloox/files/gloox-1.0.24-pthread-link.patch
new file mode 100644
index 000000000000..b66c279730cb
--- /dev/null
+++ b/net-libs/gloox/files/gloox-1.0.24-pthread-link.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/772992
+
+From: Sam James <sam@gentoo.org>
+Date: Tue, 26 Oct 2021 06:44:07 +0100
+Subject: [PATCH] Link against pthread for libgloox
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -47,7 +47,7 @@ libgloox_la_SOURCES = jid.cpp parser.cpp connectiontcpclient.cpp clientbase.cpp
+ iodata.cpp
+
+ libgloox_la_LDFLAGS = -version-info 18:0:0 -Wl,--no-undefined -Wl,--no-allow-shlib-undefined
+-libgloox_la_LIBADD =
++libgloox_la_LIBADD = @PTHREAD_LIBS@
+ libgloox_la_CFLAGS = $(CPPFLAGS)
+
+ libglooxincludedir = $(includedir)/gloox
+
diff --git a/net-libs/gloox/gloox-1.0.24.ebuild b/net-libs/gloox/gloox-1.0.24.ebuild
index 54a4ddc7b749..b63398759439 100644
--- a/net-libs/gloox/gloox-1.0.24.ebuild
+++ b/net-libs/gloox/gloox-1.0.24.ebuild
@@ -32,6 +32,7 @@ PATCHES=(
"${FILESDIR}/${PN}-1.0.24-musl.patch"
"${FILESDIR}/${PN}-1.0.24-Makefile.patch"
"${FILESDIR}/${PN}-1.0.24-slibtool.patch"
+ "${FILESDIR}/${PN}-1.0.24-pthread-link.patch"
)
src_prepare() {