1 |
commit: a6fb3635d4466cd218c292ce7eaa4954fa51cf3d |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 10 14:20:15 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 10 14:20:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6fb3635 |
7 |
|
8 |
binutils-apple: enable build of 6.3 on ppc-macos |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild | 12 ++++++++++-- |
14 |
1 file changed, 10 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild b/sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild |
17 |
index 5835b8852a0..cdeffebc6f3 100644 |
18 |
--- a/sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild |
19 |
+++ b/sys-devel/binutils-apple/binutils-apple-6.3-r1.ebuild |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Copyright 1999-2018 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI="5" |
26 |
@@ -203,6 +203,10 @@ src_configure() { |
27 |
else |
28 |
use libcxx && \ |
29 |
ewarn "libcxx only available with clang and your C++ compiler ($CXX) does not seem to be clang" |
30 |
+ |
31 |
+ # force gcc-apple, FSF gcc doesn't grok this code |
32 |
+ export CC=${CTARGET}-gcc-4.2.1 |
33 |
+ export CXX=${CTARGET}-g++-4.2.1 |
34 |
fi |
35 |
|
36 |
# CPPFLAGS only affects ld64, cctools don't use 'em (which currently is |
37 |
@@ -228,11 +232,15 @@ src_configure() { |
38 |
if use multitarget ; then |
39 |
ARCHS_TO_SUPPORT="$(grep KNOWN_ARCHS= $creco | \ |
40 |
cut -d\" -f2 | tr ',' ' ')" |
41 |
+ elif use ppc-macos ; then |
42 |
+ ARCHS_TO_SUPPORT="ppc ppc750 ppc7400 ppc7450 ppc970 ppc64 $(\ |
43 |
+ grep RC_SUPPORTED_ARCHS= $creco | cut -d\" -f2)" |
44 |
fi |
45 |
|
46 |
# Create configure.h for ld64 with SUPPORT_ARCH_<arch> defines in it. |
47 |
+ einfo "building support for: ${ARCHS_TO_SUPPORT}" |
48 |
DERIVED_FILE_DIR=${LD64}/src \ |
49 |
- RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ |
50 |
+ RC_SUPPORTED_ARCHS="$ARCHS_TO_SUPPORT" \ |
51 |
$creco |
52 |
|
53 |
# do not depend on MachOFileAbstraction.hpp to define |