aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-configure-dlpi.patch
blob: 50e2d5439969210e4a424ea40ceee109451292db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[PATCH] tcpdump: cross-compiling not check dlpi.

For cross-compiling on Linux platforms, we do not need to check libdlpi 
since it is only placed on Solaris.
Also, checking libdlpi in native /lib would cause do_qa_configure fail.

Upstream-Status: Pending.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
---
 configure.in |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 7f9591c..ca277c0 100644
--- a/configure.in
+++ b/configure.in
@@ -716,7 +716,9 @@ don't.])
 fi
 
 # libdlpi is needed for Solaris 11 and later.
-AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", ,-L/lib)
+if test "$cross_compiling" != yes; then
+	AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", ,-L/lib)
+fi
 
 dnl portability macros for getaddrinfo/getnameinfo
 dnl
-- 
1.7.5.4