Skip to contentSkip to conversation

net-snmp: Fix host contamination

PATCH New [email protected] 1 participant 1 message Aug 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-snmp: Fix host contamination

From: Changqing Li <[email protected]>

If "/usr/local/ssl/include" directory exists on the host machine, net-snmp will also search the host openssl headers:

x86_64-wrs-linux-libtool: compile: x86_64-wrs-linux-gcc ... -I/usr/local/ssl/include

Fix this by selecting the proper sysroot headers using --with-openssl=${STAGING_EXECPREFIXDIR}

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 1 +
 1 file changed, 1 insertion(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb +1 -0
index 413f033..779e5cd 100644
@@ -56,6 +56,7 @@ EXTRA_OECONF = "--enable-shared \
                 --with-install-prefix=${D} \
                 --with-persistent-directory=${localstatedir}/lib/net-snmp \
                 ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)} \
+                --with-openssl=${STAGING_EXECPREFIXDIR} \
 "
 
 # net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp
Signature · 1 line
2.7.4