blob: 293c8d91f5247f89046ac899c7c2fded22f4aef2 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001Fix net-snmp when cross-compiling
2
3Remove irrelevant references to net-snmp libs and flags
4when cross-compiling net-snmp
5
6Signed-of-by: Aws Ismail <aws.ismail@windriver.com>
7
8Upstream-Status: Pending
9
10Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
11---
12 acinclude.m4 | 4 ++--
13 configure | 4 ++--
14 2 files changed, 4 insertions(+), 4 deletions(-)
15
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016Index: openhpi-3.8.0/acinclude.m4
17===================================================================
18--- openhpi-3.8.0.orig/acinclude.m4
19+++ openhpi-3.8.0/acinclude.m4
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020@@ -160,8 +160,8 @@ AC_DEFUN([OH_CHECK_NETSNMP],
21 ],
22 [
23 have_netsnmp=yes
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024- SNMPFLAGS=`${net_snmp_config:-net-snmp-config} --cflags | perl -p -e 's/ -O\S*//g'`
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025- SNMPLIBS=`${net_snmp_config:-net-snmp-config} --libs`
26+ SNMPFLAGS=""
27+ SNMPLIBS=""
28 AC_MSG_RESULT(yes)
29 ],
30 [AC_MSG_RESULT(no. No SNMP based plugins can be built!)])
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080031Index: openhpi-3.8.0/configure
32===================================================================
33--- openhpi-3.8.0.orig/configure
34+++ openhpi-3.8.0/configure
35@@ -16062,8 +16062,8 @@ _ACEOF
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036 if ac_fn_c_try_link "$LINENO"; then :
37
38 have_netsnmp=yes
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080039- SNMPFLAGS=`${net_snmp_config:-net-snmp-config} --cflags | perl -p -e 's/ -O\S*//g'`
Brad Bishop6e60e8b2018-02-01 10:27:11 -050040- SNMPLIBS=`${net_snmp_config:-net-snmp-config} --libs`
41+ SNMPFLAGS=""
42+ SNMPLIBS=""
43 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44 $as_echo "yes" >&6; }
45