python-2.7-016-cross-compile-getaddrinfo.patch 546 B

123456789101112131415
  1. Disable buggy_getaddrinfo configure test when cross-compiling with IPv6 support
  2. Signed-off-by: Vanya Sergeev <vsergeev at gmail.com>
  3. --- python-2.7.2.orig/configure.in 2012-04-22 06:52:09.361809545 -0400
  4. +++ python-2.7.2/configure.in 2012-04-22 06:56:37.900634194 -0400
  5. @@ -3128,7 +3128,7 @@
  6. AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)
  7. -if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
  8. +if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes
  9. then
  10. if test $ipv6 = yes
  11. then