summaryrefslogtreecommitdiffstats
path: root/package/python/python-006-cross-compile-getaddrinfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/python/python-006-cross-compile-getaddrinfo.patch')
-rw-r--r--package/python/python-006-cross-compile-getaddrinfo.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/python/python-006-cross-compile-getaddrinfo.patch b/package/python/python-006-cross-compile-getaddrinfo.patch
new file mode 100644
index 0000000000..2c8248f5ad
--- /dev/null
+++ b/package/python/python-006-cross-compile-getaddrinfo.patch
@@ -0,0 +1,13 @@
+Index: b/configure.ac
+===================================================================
+--- a/configure.ac
++++ b/configure.ac
+@@ -3337,7 +3337,7 @@
+
+ AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)
+
+-if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
++if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes
+ then
+ if test $ipv6 = yes
+ then
OpenPOWER on IntegriCloud