Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | [PATCH] tcpdump: cross-compiling not check dlpi. |
| 2 | |
| 3 | For cross-compiling on Linux platforms, we do not need to check libdlpi |
| 4 | since it is only placed on Solaris. |
| 5 | Also, checking libdlpi in native /lib would cause do_qa_configure fail. |
| 6 | |
| 7 | Upstream-Status: Pending. |
| 8 | |
| 9 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> |
| 10 | --- |
| 11 | configure.in | 4 +++- |
| 12 | 1 files changed, 3 insertions(+), 1 deletions(-) |
| 13 | |
| 14 | diff --git a/configure.in b/configure.in |
| 15 | index 7f9591c..ca277c0 100644 |
| 16 | --- a/configure.in |
| 17 | +++ b/configure.in |
| 18 | @@ -716,7 +716,9 @@ don't.]) |
| 19 | fi |
| 20 | |
| 21 | # libdlpi is needed for Solaris 11 and later. |
| 22 | -AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", ,-L/lib) |
| 23 | +if test "$cross_compiling" != yes; then |
| 24 | + AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", ,-L/lib) |
| 25 | +fi |
| 26 | |
| 27 | dnl portability macros for getaddrinfo/getnameinfo |
| 28 | dnl |
| 29 | -- |
| 30 | 1.7.5.4 |
| 31 | |