patch-configure_ac 890 B

12345678910111213141516171819202122
  1. --- Python-2.7.9.orig/configure.ac 2014-12-10 17:00:00.000000000 +0100
  2. +++ Python-2.7.9/configure.ac 2015-04-11 09:05:42.203804700 +0200
  3. @@ -22,7 +22,7 @@ rm -f pybuilddir.txt
  4. if test "$cross_compiling" = yes; then
  5. AC_MSG_CHECKING([for python interpreter for cross build])
  6. if test -z "$PYTHON_FOR_BUILD"; then
  7. - for interp in python$PACKAGE_VERSION python2 python; do
  8. + for interp in python; do
  9. which $interp >/dev/null 2>&1 || continue
  10. if $interp -c 'import sys;sys.exit(not (sys.version_info@<:@:2@:>@ >= (2,7) and sys.version_info@<:@0@:>@ < 3))'; then
  11. break
  12. @@ -1070,9 +1070,7 @@ then
  13. if test "$Py_DEBUG" = 'true' ; then
  14. # Optimization messes up debuggers, so turn it off for
  15. # debug builds.
  16. - OPT="-g -O0 -Wall $STRICT_PROTO"
  17. - else
  18. - OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
  19. + OPT="$STRICT_PROTO"
  20. fi
  21. ;;
  22. *)