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 83641964ba..e8df06c84a 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
@@ -28,7 +28,7 @@ SRC_URI[sha256sum] = "e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafe
28 28
29inherit autotools update-rc.d siteinfo systemd pkgconfig 29inherit autotools update-rc.d siteinfo systemd pkgconfig
30 30
31EXTRA_OEMAKE = "INSTALL_PREFIX=${D}" 31EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'"
32 32
33PARALLEL_MAKE = "" 33PARALLEL_MAKE = ""
34CCACHE = "" 34CCACHE = ""
@@ -37,12 +37,13 @@ TARGET_CC_ARCH += "${LDFLAGS}"
37 37
38PACKAGECONFIG ??= "" 38PACKAGECONFIG ??= ""
39PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils" 39PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils"
40PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl"
40 41
41EXTRA_OECONF = "--disable-embedded-perl \ 42EXTRA_OECONF = "--disable-embedded-perl \
42 --with-perl-modules=no \ 43 --with-perl-modules=no \
43 --enable-shared \
44 --disable-manuals \ 44 --disable-manuals \
45 --with-defaults \ 45 --with-defaults \
46 --with-install-prefix=${D} \
46 --with-persistent-directory=${localstatedir}/lib/net-snmp \ 47 --with-persistent-directory=${localstatedir}/lib/net-snmp \
47 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}" 48 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
48 49
@@ -52,10 +53,15 @@ EXTRA_OECONF += "--with-mib-modules=smux"
52CACHED_CONFIGUREVARS = " \ 53CACHED_CONFIGUREVARS = " \
53 ac_cv_header_valgrind_valgrind_h=no \ 54 ac_cv_header_valgrind_valgrind_h=no \
54 ac_cv_header_valgrind_memcheck_h=no \ 55 ac_cv_header_valgrind_memcheck_h=no \
56 ac_cv_ETC_MNTTAB=/etc/mtab \
57 lt_cv_shlibpath_overrides_runpath=yes \
55" 58"
56 59
57do_configure_prepend() { 60do_configure_prepend() {
58 export PERLPROG="${bindir}/env perl" 61 export PERLPROG="${bindir}/env perl"
62 sed -i -e "s|I/usr/include|I${STAGING_INCDIR}|g" \
63 "${S}"/configure \
64 "${S}"/configure.d/config_os_libs2
59} 65}
60 66
61do_install_append() { 67do_install_append() {