Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From e86d5fd52f19b85da0b7cce660c6e65ec4c0f9bb Mon Sep 17 00:00:00 2001 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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> |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 16 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | --- |
| 18 | configure.d/config_os_headers | 4 ++-- |
| 19 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 20 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 22 | index 01c3376..6edd85f 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | --- a/configure.d/config_os_headers |
| 24 | +++ b/configure.d/config_os_headers |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 25 | @@ -395,8 +395,8 @@ then |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | unset ac_cv_header_pkg_h |
| 27 | netsnmp_save_CPPFLAGS="$CPPFLAGS" |
| 28 | netsnmp_save_LDFLAGS="$LDFLAGS" |
| 29 | - CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 30 | - LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 31 | + CPPFLAGS="$CPPFLAGS" |
| 32 | + LDFLAGS="$LDFLAGS" |
| 33 | AC_CHECK_HEADERS(pkg.h, |
| 34 | NETSNMP_SEARCH_LIBS(pkg_init, pkg, |
| 35 | AC_DEFINE(HAVE_LIBPKG, 1, [define if you have BSD pkg-ng]))) |