aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@windriver.com>2016-05-04 11:32:22 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2016-05-05 17:19:57 +0200
commit73fa6a99128d299733612779ffd504d280520e1f (patch)
treee0a43b95fffa0662afd514dc5218a70a0718b2dd /meta-networking/recipes-protocols
parentaa8e156d56d487d5419dd353da50778d56d47703 (diff)
downloadmeta-openembedded-contrib-73fa6a99128d299733612779ffd504d280520e1f.tar.gz
net-snmp: enable ipv6 support
Add packageconfig for ipv6 and enable it when it's defined in distro_features. Signed-off-by: Zhu Yanjun <yanjun.zhu@windriver.com> Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols')
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb3
1 files changed, 3 insertions, 0 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 1a5093217b..ee8878f9de 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
@@ -39,6 +39,9 @@ PACKAGECONFIG ??= ""
PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils"
PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,,"
+
EXTRA_OECONF = "--disable-embedded-perl \
--with-perl-modules=no \
--disable-manuals \