This patch is Solaris-specific and thus not suitable for upstream.
--- Python-2.7.9/configure.ac.~2~ 2014-12-11 09:25:29.893198436 -0800
+++ Python-2.7.9/configure.ac 2014-12-11 09:25:30.062473872 -0800
@@ -1086,7 +1086,7 @@
;;
*)
- OPT="-O"
+ OPT=""
;;
esac
fi