From d75e16e76f8fcb095a2d2969113c71de82911683 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 12 Mar 2014 10:30:19 +0100 Subject: [PATCH] python: improved cross-compiling setting ac_cv_buggy_getaddrinfo=no Note Only cross-checked the correctness against a native build using glibc! Other libc implementations like musl need to be checked too! Failure when running configure ---------------------------------------------------------------------- checking getaddrinfo bug... yes Fatal: You must get working getaddrinfo() function. or you can specify "--disable-ipv6" ---------------------------------------------------------------------- --- python/python/python.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/python/python.conf b/python/python/python.conf index 4ccf5e24e..5cf777b46 100644 --- a/python/python/python.conf +++ b/python/python/python.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../python/python.conf -# Copyright (C) 2007 - 2009 The OpenSDE Project +# Copyright (C) 2007 - 2014 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -51,3 +51,8 @@ fix_python_for_64bit() { } [[ $libdir = *lib64 ]] && hook_add preconf 9 "fix_python_for_64bit" + +# cross-compiling tweaks +if atstage cross; then + var_append configcache ' ' "ac_cv_buggy_getaddrinfo=no" +fi