1 |
commit: 3794dac765e7e6237413b376b74c5f34833bff18 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 19 11:58:11 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 19 12:00:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3794dac7 |
7 |
|
8 |
dev-lang/python: fix build on ppc-macos using >=gcc-8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/678062 |
11 |
Package-Manager: Portage-2.3.55.1-prefix, Repoman-2.3.12 |
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
dev-lang/python/python-3.6.6.ebuild | 9 +++++++++ |
15 |
1 file changed, 9 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/python/python-3.6.6.ebuild b/dev-lang/python/python-3.6.6.ebuild |
18 |
index 1af7820df7..3003efd0da 100644 |
19 |
--- a/dev-lang/python/python-3.6.6.ebuild |
20 |
+++ b/dev-lang/python/python-3.6.6.ebuild |
21 |
@@ -124,6 +124,15 @@ src_prepare() { |
22 |
configure.ac configure || die |
23 |
sed -i -e '/find/s/$/ || true/' Mac/PythonLauncher/Makefile.in || die |
24 |
|
25 |
+ # workaround a problem on ppc-macos with >=GCC-8 where dtoa gets |
26 |
+ # miscompiled when optimisation is being used |
27 |
+ if [[ ${CHOST} == powerpc*-darwin* ]] && \ |
28 |
+ tc-is-gcc && [[ $(gcc-major-version) -ge 8 ]] ; |
29 |
+ then |
30 |
+ sed -i \ |
31 |
+ -e '/^CFLAGS_ALIASING=/s/$/ -fno-tree-ter/' Makefile.pre.in || die |
32 |
+ fi |
33 |
+ |
34 |
eautoreconf |
35 |
} |