commit:     e1d806dae10cf0fb34aa2778eabed2869b8eece8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May  9 13:29:10 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 10 14:35:55 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1d806da

dev-lang/python: Force-off -OPT:Olimit=0 in 2.7 to unbreak clang+gcc

Bug: https://bugs.gentoo.org/596798
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/python/python-2.7.16.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-lang/python/python-2.7.16.ebuild 
b/dev-lang/python/python-2.7.16.ebuild
index a4801ad8bcc..9a7abdad0e6 100644
--- a/dev-lang/python/python-2.7.16.ebuild
+++ b/dev-lang/python/python-2.7.16.ebuild
@@ -182,6 +182,11 @@ src_configure() {
        fi
 
        local myeconfargs=(
+               # The check is broken on clang, and gives false positive:
+               # https://bugs.gentoo.org/596798
+               # (upstream dropped this flag in 3.2a4 anyway)
+               ac_cv_opt_olimit_ok=no
+
                --with-fpectl
                --enable-shared
                $(use_enable ipv6)

Reply via email to