mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 01:30:23 +00:00
net-snmp: Fix host contamination
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}
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -56,6 +56,7 @@ EXTRA_OECONF = "--enable-shared \
|
|||||||
--with-install-prefix=${D} \
|
--with-install-prefix=${D} \
|
||||||
--with-persistent-directory=${localstatedir}/lib/net-snmp \
|
--with-persistent-directory=${localstatedir}/lib/net-snmp \
|
||||||
${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)} \
|
${@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
|
# net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp
|
||||||
|
|||||||
Reference in New Issue
Block a user