diff options
| author | 2019-02-19 12:58:11 +0100 | |
|---|---|---|
| committer | 2019-02-19 13:00:09 +0100 | |
| commit | 3794dac765e7e6237413b376b74c5f34833bff18 (patch) | |
| tree | e181bd08549ac57464cfcc62f319f232566c9cde | |
| parent | dev-lang/python: github/cygwinports has multiple python3 repos now (diff) | |
| download | prefix-3794dac765e7e6237413b376b74c5f34833bff18.tar.gz prefix-3794dac765e7e6237413b376b74c5f34833bff18.tar.bz2 prefix-3794dac765e7e6237413b376b74c5f34833bff18.zip | |
dev-lang/python: fix build on ppc-macos using >=gcc-8
Closes: https://bugs.gentoo.org/678062
Package-Manager: Portage-2.3.55.1-prefix, Repoman-2.3.12
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
| -rw-r--r-- | dev-lang/python/python-3.6.6.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-lang/python/python-3.6.6.ebuild b/dev-lang/python/python-3.6.6.ebuild index 1af7820df7..3003efd0da 100644 --- a/dev-lang/python/python-3.6.6.ebuild +++ b/dev-lang/python/python-3.6.6.ebuild @@ -124,6 +124,15 @@ src_prepare() { configure.ac configure || die sed -i -e '/find/s/$/ || true/' Mac/PythonLauncher/Makefile.in || die + # workaround a problem on ppc-macos with >=GCC-8 where dtoa gets + # miscompiled when optimisation is being used + if [[ ${CHOST} == powerpc*-darwin* ]] && \ + tc-is-gcc && [[ $(gcc-major-version) -ge 8 ]] ; + then + sed -i \ + -e '/^CFLAGS_ALIASING=/s/$/ -fno-tree-ter/' Makefile.pre.in || die + fi + eautoreconf } |
