NDEBUG has been removed from Python. So we no longer need to do this... sed -e "s:^OPT=.*:OPT=-DNDEBUG:" -i "${D}usr/$(get_libdir)/python${PYVER}/config/Makefile" and it should change to this... sed -e "s:^OPT=.*:OPT=:" -i "${D}usr/$(get_libdir)/python${PYVER}/config/Makefile"
Oh, additionally as we define OPT, we miss a check in configure that requires the use of -fwrapv with GCC 4.
Fixed in 2.4.6, 2.5.4-r4, 2.6.4-r1 and 3.1.1-r1.