Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-libs/libcxx/
Date: Tue, 09 Jan 2018 02:02:57
Message-Id: 1515441589.a92c62593fcb6d0b62de8d1d615db1ecc6bb59da.grobian@gentoo
1 commit: a92c62593fcb6d0b62de8d1d615db1ecc6bb59da
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 8 19:59:49 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 8 19:59:49 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a92c6259
7
8 sys-libs/libcxx: fix linking on ppc (need -fPIC explicitly)
9
10 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6
11
12 sys-libs/libcxx/libcxx-3.5.1.ebuild | 6 +++++-
13 1 file changed, 5 insertions(+), 1 deletion(-)
14
15 diff --git a/sys-libs/libcxx/libcxx-3.5.1.ebuild b/sys-libs/libcxx/libcxx-3.5.1.ebuild
16 index 787a678359..66c8c8f018 100644
17 --- a/sys-libs/libcxx/libcxx-3.5.1.ebuild
18 +++ b/sys-libs/libcxx/libcxx-3.5.1.ebuild
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2016 Gentoo Foundation
21 +# Copyright 1999-2018 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23 # $Id $
24
25 @@ -98,6 +98,10 @@ src_prepare() {
26 epatch "${FILESDIR}"/${PN}-3.5.1-eprintf.patch
27 fi
28
29 + if [[ ${CHOST} == powerpc*-darwin* ]] ; then
30 + sed -i -e '/RC_CFLAGS=""/s/""/"-fPIC"/' lib/buildit || die
31 + fi
32 +
33 # fix library install names
34 sed -i \
35 -e "s,/usr/lib/libc++abi\.dylib,${EPREFIX}/usr/lib/libc++abi.dylib,g" \