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/libcxxabi/
Date: Tue, 09 Jan 2018 02:01:27
Message-Id: 1515441143.0aa5704924154af94dd39bc9f8a47e1338564ebe.grobian@gentoo
1 commit: 0aa5704924154af94dd39bc9f8a47e1338564ebe
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 8 19:52:23 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 8 19:52:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=0aa57049
7
8 sys-libs/libcxxabi: fix linking on ppc (need -fPIC explicitly)
9
10 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6
11
12 sys-libs/libcxxabi/libcxxabi-3.5.1.ebuild | 8 ++++++--
13 1 file changed, 6 insertions(+), 2 deletions(-)
14
15 diff --git a/sys-libs/libcxxabi/libcxxabi-3.5.1.ebuild b/sys-libs/libcxxabi/libcxxabi-3.5.1.ebuild
16 index 7e831423fc..1073e922e3 100644
17 --- a/sys-libs/libcxxabi/libcxxabi-3.5.1.ebuild
18 +++ b/sys-libs/libcxxabi/libcxxabi-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 @@ -58,6 +58,10 @@ src_prepare() {
26 -e "s,-arch i386 -arch x86_64,,g" \
27 lib/buildit
28
29 + if [[ ${CHOST} == powerpc*-darwin* ]] ; then
30 + sed -i -e '/RC_CFLAGS=""/s/""/"-fPIC"/' lib/buildit || die
31 + fi
32 +
33 # assert.h refers to eprintf which is nowhere to be found. That's why
34 # everyone (libstdc++, clang compiler-rt) bring their own
35 # implementation. Ours is nicked from Apple's patch to libstdc++-39.
36 @@ -65,7 +69,7 @@ src_prepare() {
37 epatch "${FILESDIR}"/${PN}-3.5.1-eprintf.patch
38
39 sed -i -e "s,/usr/lib/libc++abi\.dylib,${EPREFIX}/usr/lib/libc++abi.dylib,g" \
40 - lib/buildit
41 + lib/buildit || die
42 }
43
44 src_compile() {