Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-devtools / perl / libsocket6-perl / 0001-socket6-perl-fix-configure-error.patch
1 From b33a6a83687fc58cd5f662d44ba8819498cb80a4 Mon Sep 17 00:00:00 2001
2 From: Changqing Li <changqing.li@windriver.com>
3 Date: Thu, 9 Aug 2018 14:10:32 +0800
4 Subject: [PATCH] socket6-perl: fix configure error
5
6 only do IPv6_CHECK_INET_NTOP when not cross compile to fix below
7 error: checking for working inet_ntop..., configure: error:
8 cannot run test program while cross compiling
9
10 Upstream-Status: Inappropriate [oe specific]
11
12 Signed-off-by: Changqing Li <changqing.li@windriver.com>
13 ---
14  configure.in | 4 +++-
15  1 file changed, 3 insertions(+), 1 deletion(-)
16
17 diff --git a/configure.in b/configure.in
18 index 1fe22e1..1a7cf94 100644
19 --- a/configure.in
20 +++ b/configure.in
21 @@ -63,7 +63,9 @@ if test $ac_cv_lib_inet6_getaddrinfo = yes; then
22         INET6LIBS="-L$ipv6_cv_dir/lib -linet6"
23  fi
24  
25 -IPv6_CHECK_INET_NTOP()
26 +if test "$cross_compiling" != yes; then
27 +       IPv6_CHECK_INET_NTOP()
28 +fi
29  IPv6_CHECK_SA_LEN()
30  IPv6_CHECK_SIN6_SCOPE_ID()
31  IPv6_CHECK_SOCKLEN_T()
32 -- 
33 2.7.4
34