mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
net-snmp: add knob whether nlist.h are checked
Previously, it still was checked when there was no nlish.h in sysroots directory. Add knob to decide whether nlist.h are checked or not. Fixed by using PACKAGECONFIG to check elf, with default disabled set. Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
769ea4a473
commit
c299c5a74c
|
|
@ -0,0 +1,35 @@
|
|||
net-snmp: add knob whether nlist.h are checked
|
||||
|
||||
Previously, it still was checked when there was no nlish.h in sysroots directory.
|
||||
Add knob to decide whether nlist.h are checked or not.
|
||||
|
||||
Upstream-status: Pending
|
||||
|
||||
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
|
||||
---
|
||||
configure.d/config_os_headers | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers
|
||||
index d903f58..a05d30e 100644
|
||||
--- a/configure.d/config_os_headers
|
||||
+++ b/configure.d/config_os_headers
|
||||
@@ -31,6 +31,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl
|
||||
[sys/un.h ])
|
||||
|
||||
# Library and Agent:
|
||||
+if test "x$with_elf" != "xno"; then
|
||||
AC_CHECK_HEADERS([nlist.h],,,[
|
||||
AC_INCLUDES_DEFAULT
|
||||
[
|
||||
@@ -38,6 +39,7 @@ AC_INCLUDES_DEFAULT
|
||||
#define LIBBSD_DISABLE_DEPRECATED 1
|
||||
#endif
|
||||
]])
|
||||
+fi
|
||||
|
||||
# Library:
|
||||
AC_CHECK_HEADERS([fcntl.h io.h kstat.h ] dnl
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
|
|
@ -15,6 +15,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.zip \
|
|||
file://snmpd.service \
|
||||
file://snmptrapd.service \
|
||||
file://ifmib.patch \
|
||||
file://net-snmp-add-knob-whether-nlist.h-are-checked.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "a2c83518648b0f2a5d378625e45c0e18"
|
||||
|
|
@ -29,6 +30,9 @@ CCACHE = ""
|
|||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils"
|
||||
|
||||
EXTRA_OECONF = "--disable-embedded-perl \
|
||||
--with-perl-modules=no \
|
||||
--enable-shared \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user