summaryrefslogtreecommitdiff
path: root/data/_python3.7/configure.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/_python3.7/configure.diff')
-rw-r--r--data/_python3.7/configure.diff175
1 files changed, 175 insertions, 0 deletions
diff --git a/data/_python3.7/configure.diff b/data/_python3.7/configure.diff
new file mode 100644
index 000000000..f8b11e254
--- /dev/null
+++ b/data/_python3.7/configure.diff
@@ -0,0 +1,175 @@
+diff -ur Python-3.7.3/configure.ac Python-3.7.3+iPhone/configure.ac
+--- Python-3.7.3/configure.ac 2019-03-25 20:21:05.000000000 +0000
++++ Python-3.7.3+iPhone/configure.ac 2019-04-11 14:26:49.751953155 +0000
+@@ -379,6 +379,9 @@
+ *-*-cygwin*)
+ ac_sys_system=Cygwin
+ ;;
++ *-*-darwin*)
++ ac_sys_system=Darwin
++ ;;
+ *)
+ # for now, limit cross builds to known configurations
+ MACHDEP="unknown"
+@@ -423,6 +426,9 @@
+ *-*-cygwin*)
+ _host_cpu=
+ ;;
++ *-*-darwin*)
++ _host_cpu=$host_cpu
++ ;;
+ *)
+ # for now, limit cross builds to known configurations
+ MACHDEP="unknown"
+@@ -1202,11 +1208,15 @@
+
+ AC_CHECK_TOOLS([READELF], [readelf], [:])
+ if test "$cross_compiling" = yes; then
+- case "$READELF" in
+- readelf|:)
+- AC_MSG_ERROR([readelf for the host is required for cross builds])
+- ;;
+- esac
++ if test "$ac_sys_system" = Darwin; then
++ :
++ else
++ case "$READELF" in
++ readelf|:)
++ AC_MSG_ERROR([readelf for the host is required for cross builds])
++ ;;
++ esac
++ fi
+ fi
+ AC_SUBST(READELF)
+
+@@ -2407,63 +2417,63 @@
+
+ AC_SUBST(LIBTOOL_CRUFT)
+ case $ac_sys_system/$ac_sys_release in
+- Darwin/@<:@01567@:>@\..*)
+- LIBTOOL_CRUFT="-framework System -lcc_dynamic"
+- if test "${enable_universalsdk}"; then
+- :
+- else
+- LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
+- fi
+- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
+- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
++# Darwin/@<:@01567@:>@\..*)
++# LIBTOOL_CRUFT="-framework System -lcc_dynamic"
++# if test "${enable_universalsdk}"; then
++# :
++# else
++# LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
++# fi
++# LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
++# LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
+ Darwin/*)
+- gcc_version=`gcc -dumpversion`
+- if test ${gcc_version} '<' 4.0
+- then
+- LIBTOOL_CRUFT="-lcc_dynamic"
+- else
++# gcc_version=`gcc -dumpversion`
++# if test ${gcc_version} '<' 4.0
++# then
++# LIBTOOL_CRUFT="-lcc_dynamic"
++# else
+ LIBTOOL_CRUFT=""
+- fi
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- #include <unistd.h>
+- int main(int argc, char*argv[])
+- {
+- if (sizeof(long) == 4) {
+- return 0;
+- } else {
+- return 1;
+- }
+- }
+- ]])],[ac_osx_32bit=yes],[ac_osx_32bit=no],[ac_osx_32bit=yes])
+-
+- if test "${ac_osx_32bit}" = "yes"; then
+- case `/usr/bin/arch` in
+- i386)
+- MACOSX_DEFAULT_ARCH="i386"
+- ;;
+- ppc)
+- MACOSX_DEFAULT_ARCH="ppc"
+- ;;
+- *)
+- AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
+- ;;
+- esac
+- else
+- case `/usr/bin/arch` in
+- i386)
+- MACOSX_DEFAULT_ARCH="x86_64"
+- ;;
+- ppc)
+- MACOSX_DEFAULT_ARCH="ppc64"
+- ;;
+- *)
+- AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
+- ;;
+- esac
+-
+- fi
++# fi
++# AC_RUN_IFELSE([AC_LANG_SOURCE([[
++# #include <unistd.h>
++# int main(int argc, char*argv[])
++# {
++# if (sizeof(long) == 4) {
++# return 0;
++# } else {
++# return 1;
++# }
++# }
++# ]])],[ac_osx_32bit=yes],[ac_osx_32bit=no],[ac_osx_32bit=yes])
++
++# if test "${ac_osx_32bit}" = "yes"; then
++# case `/usr/bin/arch` in
++# i386)
++# MACOSX_DEFAULT_ARCH="i386"
++# ;;
++# ppc)
++# MACOSX_DEFAULT_ARCH="ppc"
++# ;;
++# *)
++# AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
++# ;;
++# esac
++# else
++# case `/usr/bin/arch` in
++# i386)
++# MACOSX_DEFAULT_ARCH="x86_64"
++# ;;
++# ppc)
++# MACOSX_DEFAULT_ARCH="ppc64"
++# ;;
++# *)
++# AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
++# ;;
++# esac
++#
++# fi
+
+- LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
++ LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs"
+ LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
+ LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
+ esac
+@@ -4052,7 +4062,11 @@
+
+ if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
+ then
+- if test $ipv6 = yes
++ if test "$cross_compiling" = yes && test "$ac_cv_buggy_getaddrinfo" = yes; then
++ echo 'Warning: Buggy getaddrinfo! Skipping fatal error.'
++ echo ' or you can specify "--disable-ipv6".'
++ AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if you have the getaddrinfo function.])
++ elif test $ipv6 = yes
+ then
+ echo 'Fatal: You must get working getaddrinfo() function.'
+ echo ' or you can specify "--disable-ipv6"'.