# https://forums.gentoo.org/viewtopic-t-984804-start-0.html diff -Nupr Python-2.7.12/configure.ac Python-2.7.12-patched/configure.ac --- Python-2.7.12/configure.ac 2016-10-10 14:06:18.732629530 +0200 +++ Python-2.7.12-patched/configure.ac 2016-10-10 14:07:19.453631912 +0200 @@ -1307,6 +1307,12 @@ then ac_cv_opt_olimit_ok=no fi +# idem for clang +if test "$CC" = clang +then + ac_cv_opt_olimit_ok=no +fi + AC_MSG_CHECKING(whether $CC accepts -OPT:Olimit=0) AC_CACHE_VAL(ac_cv_opt_olimit_ok, [ac_save_cc="$CC"