summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-10 20:11:01 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-10 20:11:01 +0100
commit253aea5a6f65517d4a88d5a0c0cd6e9272610f65 (patch)
tree0f0e7a2e257fd1a4d92fd80283adaa80fb475887
parentsys-libs/libcxxabi: port ppc buildfix from 3.5.1 to 3.8.1 (diff)
downloadprefix-253aea5a6f65517d4a88d5a0c0cd6e9272610f65.zip
prefix-253aea5a6f65517d4a88d5a0c0cd6e9272610f65.tar.gz
prefix-253aea5a6f65517d4a88d5a0c0cd6e9272610f65.tar.bz2
sys-libs/libcxx: port ppc buildfix from 3.5.1 to 3.8.1
Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6
-rw-r--r--sys-libs/libcxx/libcxx-3.8.1.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-libs/libcxx/libcxx-3.8.1.ebuild b/sys-libs/libcxx/libcxx-3.8.1.ebuild
index df64d3f..61e7ba5 100644
--- a/sys-libs/libcxx/libcxx-3.8.1.ebuild
+++ b/sys-libs/libcxx/libcxx-3.8.1.ebuild
@@ -94,6 +94,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" \