commit:     19d9182c529f551b404d8f40525da07ee7648b16
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 26 05:47:44 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 26 05:47:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d9182c

net-libs/gloox: link against pthread if needed

Closes: https://bugs.gentoo.org/772992
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/gloox/files/gloox-1.0.24-pthread-link.patch | 17 +++++++++++++++++
 net-libs/gloox/gloox-1.0.24.ebuild                   |  1 +
 2 files changed, 18 insertions(+)

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 00000000000..b66c279730c
--- /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 <[email protected]>
+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 54a4ddc7b74..b6339875943 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() {

Reply via email to