net-snmp: Using the target perl

Set the PERLPROG to target perl to avoid host contamination.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
Yue Tao
2014-05-09 16:40:35 +08:00
committed by Joe MacDonald
parent 2e7f3ce93b
commit b9ad53ccce
@@ -37,6 +37,10 @@ EXTRA_OECONF = "--disable-embedded-perl \
--with-defaults \
${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
do_configure_prepend() {
export PERLPROG="${bindir}/env perl"
}
do_install_append() {
install -d ${D}${sysconfdir}/snmp
install -d ${D}${sysconfdir}/init.d