commit: a92c62593fcb6d0b62de8d1d615db1ecc6bb59da
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 8 19:59:49 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan 8 19:59:49 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a92c6259
sys-libs/libcxx: fix linking on ppc (need -fPIC explicitly)
Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6
sys-libs/libcxx/libcxx-3.5.1.ebuild | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sys-libs/libcxx/libcxx-3.5.1.ebuild
b/sys-libs/libcxx/libcxx-3.5.1.ebuild
index 787a678359..66c8c8f018 100644
--- a/sys-libs/libcxx/libcxx-3.5.1.ebuild
+++ b/sys-libs/libcxx/libcxx-3.5.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id $
@@ -98,6 +98,10 @@ src_prepare() {
epatch "${FILESDIR}"/${PN}-3.5.1-eprintf.patch
fi
+ if [[ ${CHOST} == powerpc*-darwin* ]] ; then
+ sed -i -e '/RC_CFLAGS=""/s/""/"-fPIC"/' lib/buildit ||
die
+ fi
+
# fix library install names
sed -i \
-e
"s,/usr/lib/libc++abi\.dylib,${EPREFIX}/usr/lib/libc++abi.dylib,g" \