commit: 3794dac765e7e6237413b376b74c5f34833bff18 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Tue Feb 19 11:58:11 2019 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Tue Feb 19 12:00:09 2019 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3794dac7
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 <AT> gentoo.org> dev-lang/python/python-3.6.6.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) 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 }
