python2: update to 2.7.13, simplify patches
[openadk.git] / package / python2 / patches / patch-configure_ac
blob1a09f6eed530c751e8d0041988f39067a9c78fb7
1 --- Python-2.7.13.orig/configure.ac     2016-12-17 21:05:07.000000000 +0100
2 +++ Python-2.7.13/configure.ac  2017-03-16 19:29:41.000000000 +0100
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 @@ -1079,9 +1079,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         *)