summaryrefslogtreecommitdiff
path: root/package/python3/patches/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'package/python3/patches/patch-configure')
-rw-r--r--package/python3/patches/patch-configure34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/python3/patches/patch-configure b/package/python3/patches/patch-configure
new file mode 100644
index 000000000..12bdfbcc8
--- /dev/null
+++ b/package/python3/patches/patch-configure
@@ -0,0 +1,34 @@
+--- Python-3.3.2.orig/configure 2013-05-15 18:33:00.000000000 +0200
++++ Python-3.3.2/configure 2013-10-24 16:05:44.000000000 +0200
+@@ -6214,10 +6214,6 @@ then
+ if test "$CC" != 'g++' ; then
+ STRICT_PROTO="-Wstrict-prototypes"
+ fi
+- # For gcc 4.x we need to use -fwrapv so lets check if its supported
+- if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
+- WRAP="-fwrapv"
+- fi
+
+ # Clang also needs -fwrapv
+ case $CC in
+@@ -6225,20 +6221,6 @@ then
+ ;;
+ esac
+
+- case $ac_cv_prog_cc_g in
+- yes)
+- 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"
+- fi
+- ;;
+- *)
+- OPT="-O3 -Wall $STRICT_PROTO"
+- ;;
+- esac
+ case $ac_sys_system in
+ SCO_SV*) OPT="$OPT -m486 -DSCO5"
+ ;;