diff options
author | Sam James <sam@gentoo.org> | 2021-10-26 06:47:44 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-26 06:47:44 +0100 |
commit | 19d9182c529f551b404d8f40525da07ee7648b16 (patch) | |
tree | cfe3abffc1d34219f9a0ea8cbf2c3add65fa2d74 /net-libs/gloox | |
parent | games-puzzle/tod: respect CC, prefix (diff) | |
download | gentoo-19d9182c529f551b404d8f40525da07ee7648b16.tar.gz gentoo-19d9182c529f551b404d8f40525da07ee7648b16.tar.bz2 gentoo-19d9182c529f551b404d8f40525da07ee7648b16.zip |
net-libs/gloox: link against pthread if needed
Closes: https://bugs.gentoo.org/772992
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/gloox')
-rw-r--r-- | net-libs/gloox/files/gloox-1.0.24-pthread-link.patch | 17 | ||||
-rw-r--r-- | net-libs/gloox/gloox-1.0.24.ebuild | 1 |
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() { |