commit:     b21e8670a2ef1239c1448a7b186dca41170756a5
Author:     Niccolò Belli <niccolo.belli <AT> linuxsystems <DOT> it>
AuthorDate: Thu Feb  2 13:40:04 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 08:58:47 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b21e8670

dev-cpp/folly: fix build on ppc64

Bug: https://bugs.gentoo.org/892942
Signed-off-by: Niccolò Belli <niccolo.belli <AT> linuxsystems.it>
Closes: https://github.com/gentoo/gentoo/pull/29393
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/folly/folly-2023.02.06.00.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/folly/folly-2023.02.06.00.ebuild 
b/dev-cpp/folly/folly-2023.02.06.00.ebuild
index ec2a1bff52c6..0e6a15333d8f 100644
--- a/dev-cpp/folly/folly-2023.02.06.00.ebuild
+++ b/dev-cpp/folly/folly-2023.02.06.00.ebuild
@@ -17,7 +17,7 @@ S="${WORKDIR}"
 
 LICENSE="Apache-2.0"
 SLOT="0/${PV}"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
 IUSE="llvm-libunwind test"
 RESTRICT="!test? ( test )"
 
@@ -81,6 +81,9 @@ src_configure() {
                -DLIB_INSTALL_DIR="$(get_libdir)"
 
                -DBUILD_TESTS=$(usex test)
+
+               # https://github.com/gentoo/gentoo/pull/29393
+               -DCMAKE_LIBRARY_ARCHITECTURE=$(usex amd64 x86_64 ${ARCH})
        )
 
        cmake_src_configure

Reply via email to