From 333245969917c94a03900881cc9ac5c1c401ab86 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 28 Oct 2013 16:31:39 +0100 Subject: update python3 to new host build style --- package/python3/patches/patch-configure | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/python3/patches/patch-configure (limited to 'package/python3/patches/patch-configure') 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" + ;; -- cgit v1.2.3