]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/python/0005-Adjust-getaddrinfo-test-for-cross-compilation.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / python / 0005-Adjust-getaddrinfo-test-for-cross-compilation.patch
1 From 2d971c3cdca9ecc55f2da8aba12ca89e1a66519a Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 7 Mar 2017 22:19:47 +0100
4 Subject: [PATCH] Adjust getaddrinfo() test for cross-compilation
5
6 The getaddrinfo() test in configure.ac uses AC_RUN_IFELSE(), which isn't
7 cross-compilation friendly.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 ---
11  configure.ac | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/configure.ac b/configure.ac
15 index 4aafc82..63e6918 100644
16 --- a/configure.ac
17 +++ b/configure.ac
18 @@ -3527,7 +3527,7 @@ fi
19  
20  AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)
21  
22 -if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
23 +if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes
24  then
25         if test $ipv6 = yes
26         then
27 -- 
28 2.7.4
29