From d12cc35e8dc72515330a2a94192f9796e76013ac Mon Sep 17 00:00:00 2001 From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Date: Tue, 17 Mar 2020 19:44:22 +0100 Subject: [PATCH] app-arch/zstd: IUSE=threads Closes: https://bugs.gentoo.org/699020 Closes: https://github.com/gentoo/gentoo/pull/14992 Signed-off-by: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Signed-off-by: Matt Turner --- app-arch/zstd/zstd-1.4.4-r3.ebuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app-arch/zstd/zstd-1.4.4-r3.ebuild b/app-arch/zstd/zstd-1.4.4-r3.ebuild index 23c642f56844..d5c67e17ca2c 100644 --- a/app-arch/zstd/zstd-1.4.4-r3.ebuild +++ b/app-arch/zstd/zstd-1.4.4-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="|| ( BSD GPL-2 )" SLOT="0/1" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="lz4 static-libs" +IUSE="lz4 static-libs +threads" RDEPEND="app-arch/xz-utils lz4? ( app-arch/lz4 )" @@ -39,7 +39,11 @@ mymake() { } multilib_src_compile() { - mymake -C lib libzstd libzstd.a libzstd.pc + if use threads; then + mymake -C lib libzstd-mt libzstd.a-mt libzstd.pc + else + mymake -C lib libzstd libzstd.a libzstd.pc + fi if multilib_is_native_abi ; then mymake HAVE_LZ4="$(usex lz4 1 0)" zstd -- 2.26.2