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