--- 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 # Optimization messes up debuggers, so turn it off for # debug builds. - OPT="-g -Wall $STRICT_PROTO" + OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO" else - OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" + OPT="-g $WRAP $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO" fi ;; *) - OPT="-O3 -Wall $STRICT_PROTO" + OPT="$CPPFLAGS $CFLAGS -Wall $STRICT_PROTO" ;; 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 \