Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 261a22096c79f8e6ef7b387514a74d208e4e5945 Mon Sep 17 00:00:00 2001 |
| 2 | From: Li xin <lixin.fnst@cn.fujitsu.com> |
| 3 | Date: Fri, 21 Aug 2015 18:23:13 +0900 |
| 4 | Subject: [PATCH] config_os_headers: Error Fix |
| 5 | |
| 6 | ERROR: This autoconf log indicates errors, it looked at host include |
| 7 | and/or library paths while determining system capabilities. |
| 8 | cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories] |
| 9 | conftest.c:168:17: fatal error: pkg.h: No such file or directory |
| 10 | #include <pkg.h> |
| 11 | ^ |
| 12 | |
| 13 | Upstream-Status: pending |
| 14 | |
| 15 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> |
| 16 | --- |
| 17 | configure.d/config_os_headers | 4 ++-- |
| 18 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 19 | |
| 20 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
| 21 | index 708aa09..0df32ca 100644 |
| 22 | --- a/configure.d/config_os_headers |
| 23 | +++ b/configure.d/config_os_headers |
| 24 | @@ -482,8 +482,8 @@ then |
| 25 | unset ac_cv_header_pkg_h |
| 26 | netsnmp_save_CPPFLAGS="$CPPFLAGS" |
| 27 | netsnmp_save_LDFLAGS="$LDFLAGS" |
| 28 | - CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 29 | - LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 30 | + CPPFLAGS="$CPPFLAGS" |
| 31 | + LDFLAGS="$LDFLAGS" |
| 32 | AC_CHECK_HEADERS(pkg.h, |
| 33 | NETSNMP_SEARCH_LIBS(pkg_init, pkg, |
| 34 | AC_DEFINE(HAVE_LIBPKG, 1, [define if you have BSD pkg-ng]))) |
| 35 | -- |
| 36 | 1.8.4.2 |
| 37 | |