blob: 95b0abc913c0d118843400877f4296944ab4c398 [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
16diff --git a/acinclude.m4 b/acinclude.m4
17index 82c33f6..727e461 100644
18--- a/acinclude.m4
19+++ b/acinclude.m4
20@@ -160,8 +160,8 @@ AC_DEFUN([OH_CHECK_NETSNMP],
21 ],
22 [
23 have_netsnmp=yes
24- SNMPFLAGS=`${net_snmp_config:-net-snmp-config} --cflags | perl -p -e 's/-O\S*//g'`
25- 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!)])
31diff --git a/configure b/configure
32index 00067bc..36b913c 100755
33--- a/configure
34+++ b/configure
35@@ -15949,8 +15949,8 @@ _ACEOF
36 if ac_fn_c_try_link "$LINENO"; then :
37
38 have_netsnmp=yes
39- SNMPFLAGS=`${net_snmp_config:-net-snmp-config} --cflags | perl -p -e 's/-O\S*//g'`
40- 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
46--
471.9.1
48