From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76DDE138332 for ; Tue, 10 Apr 2018 08:04:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB1F8E08F3; Tue, 10 Apr 2018 08:04:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 87484E08F3 for ; Tue, 10 Apr 2018 08:04:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C801335C76 for ; Tue, 10 Apr 2018 08:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD18F286 for ; Tue, 10 Apr 2018 08:04:51 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1523347455.2ef91df1f0f81deca530b90a249c94d86f4ace36.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libaom/, media-libs/libaom/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libaom/files/pthread_lib.patch media-libs/libaom/libaom-9999.ebuild X-VCS-Directories: media-libs/libaom/files/ media-libs/libaom/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 2ef91df1f0f81deca530b90a249c94d86f4ace36 X-VCS-Branch: master Date: Tue, 10 Apr 2018 08:04:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 28ecc641-e64b-402e-b879-dc6944d0617c X-Archives-Hash: 3cd53f9ed0567651e93df53f6f4c4c32 commit: 2ef91df1f0f81deca530b90a249c94d86f4ace36 Author: Alexis Ballier gentoo org> AuthorDate: Tue Apr 10 07:43:23 2018 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Tue Apr 10 08:04:15 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ef91df1 media-libs/libaom: fix shared lib underlinking Package-Manager: Portage-2.3.28, Repoman-2.3.9 media-libs/libaom/files/pthread_lib.patch | 14 ++++++++++++++ media-libs/libaom/libaom-9999.ebuild | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/media-libs/libaom/files/pthread_lib.patch b/media-libs/libaom/files/pthread_lib.patch new file mode 100644 index 00000000000..d8770bc687c --- /dev/null +++ b/media-libs/libaom/files/pthread_lib.patch @@ -0,0 +1,14 @@ +Index: libaom-9999/CMakeLists.txt +=================================================================== +--- libaom-9999.orig/CMakeLists.txt ++++ libaom-9999/CMakeLists.txt +@@ -598,6 +598,9 @@ if (BUILD_SHARED_LIBS) + include("${AOM_ROOT}/build/cmake/exports.cmake") + setup_exports_target() + set_target_properties(aom PROPERTIES SOVERSION 0) ++ if (HAVE_PTHREAD_H AND CONFIG_MULTITHREAD) ++ target_link_libraries(aom ${AOM_LIB_LINK_TYPE} Threads::Threads) ++ endif () + endif () + + # Handle user supplied compile and link flags last to ensure they're obeyed. diff --git a/media-libs/libaom/libaom-9999.ebuild b/media-libs/libaom/libaom-9999.ebuild index 512d1b35470..9b472bd99de 100644 --- a/media-libs/libaom/libaom-9999.ebuild +++ b/media-libs/libaom/libaom-9999.ebuild @@ -35,7 +35,7 @@ REQUIRED_USE=" cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 ) " -PATCHES=( "${FILESDIR}/libdirpc.patch" ) +PATCHES=( "${FILESDIR}/libdirpc.patch" "${FILESDIR}/pthread_lib.patch" ) src_prepare() { sed -e 's/lib"/lib${LIB_SUFFIX}"/' -i CMakeLists.txt || die