summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
index b32d842de..93eb0252d 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
@@ -27,7 +27,7 @@ SRC_URI[sha256sum] = "e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafe
27 27
28inherit autotools update-rc.d siteinfo systemd pkgconfig 28inherit autotools update-rc.d siteinfo systemd pkgconfig
29 29
30EXTRA_OEMAKE = "INSTALL_PREFIX=${D}" 30EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'"
31 31
32PARALLEL_MAKE = "" 32PARALLEL_MAKE = ""
33CCACHE = "" 33CCACHE = ""
@@ -36,12 +36,13 @@ TARGET_CC_ARCH += "${LDFLAGS}"
36 36
37PACKAGECONFIG ??= "" 37PACKAGECONFIG ??= ""
38PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils" 38PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils"
39PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl"
39 40
40EXTRA_OECONF = "--disable-embedded-perl \ 41EXTRA_OECONF = "--disable-embedded-perl \
41 --with-perl-modules=no \ 42 --with-perl-modules=no \
42 --enable-shared \
43 --disable-manuals \ 43 --disable-manuals \
44 --with-defaults \ 44 --with-defaults \
45 --with-install-prefix=${D} \
45 --with-persistent-directory=${localstatedir}/lib/net-snmp \ 46 --with-persistent-directory=${localstatedir}/lib/net-snmp \
46 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}" 47 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
47 48
@@ -51,10 +52,15 @@ EXTRA_OECONF += "--with-mib-modules=smux"
51CACHED_CONFIGUREVARS = " \ 52CACHED_CONFIGUREVARS = " \
52 ac_cv_header_valgrind_valgrind_h=no \ 53 ac_cv_header_valgrind_valgrind_h=no \
53 ac_cv_header_valgrind_memcheck_h=no \ 54 ac_cv_header_valgrind_memcheck_h=no \
55 ac_cv_ETC_MNTTAB=/etc/mtab \
56 lt_cv_shlibpath_overrides_runpath=yes \
54" 57"
55 58
56do_configure_prepend() { 59do_configure_prepend() {
57 export PERLPROG="${bindir}/env perl" 60 export PERLPROG="${bindir}/env perl"
61 sed -i -e "s|I/usr/include|I${STAGING_INCDIR}|g" \
62 "${S}"/configure \
63 "${S}"/configure.d/config_os_libs2
58} 64}
59 65
60do_install_append() { 66do_install_append() {