---- Python-2.5b2/configure.in.orig 2006-07-06 11:13:35.000000000 +0100
-+++ Python-2.5b2/configure.in 2006-07-12 16:30:30.000000000 +0100
-@@ -753,13 +753,13 @@
- if test "$Py_DEBUG" = 'true' ; then
+--- Python-3.5.0/configure.ac~ 2015-09-13 13:41:26.000000000 +0200
++++ Python-3.5.0/configure.ac 2015-09-13 20:06:11.597280920 +0200
+@@ -1258,16 +1258,16 @@ then
# Optimization messes up debuggers, so turn it off for
# debug builds.
-- OPT="-g -Wall $STRICT_PROTO"
-+ OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
+ if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
+- OPT="-g -Og -Wall $STRICT_PROTO"
++ OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
+ else
+- OPT="-g -O0 -Wall $STRICT_PROTO"
++ OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
+ fi
else
-- OPT="-g -O3 -Wall $STRICT_PROTO"
-+ OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
+- OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
++ OPT="-g $WRAP $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
fi
;;
*)
;;
esac
case $ac_sys_system in
---- Python-2.5c1.orig/Makefile.pre.in 2006-07-30 17:20:10.000000000 +0100
-+++ Python-2.5c1/Makefile.pre.in 2006-08-25 17:51:05.000000000 +0100
-@@ -852,7 +852,7 @@
- $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
- # Substitution happens here, as the completely-expanded BINDIR
- # is not available in configure
-- sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
-+ sed -e "s,@EXENAME@,$(BINDIR)/python$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
- $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config
- rm python-config
- @if [ -s Modules/python.exp -a \