instead of using 'little' hardcoded, rely on the config

I recommend to backport this fix to AA, once this bug
prevents MD5 authentication in protocol v3.

Signed-off-by: Jonh Wendell <jonh.wend...@oiwifi.com.br>
---
 net/net-snmp/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile
index f19d68b..551180a 100644
--- a/net/net-snmp/Makefile
+++ b/net/net-snmp/Makefile
@@ -155,7 +155,7 @@ CONFIGURE_ARGS += \
     --enable-mfd-rewrites \
     --enable-shared \
     --enable-static \
-    --with-endianness=little \
+    --with-endianness=$(if $(CONFIG_BIG_ENDIAN),big,little) \
     --with-logfile=/var/log/snmpd.log \
     --with-persistent-directory=/usr/lib/snmp/ \
     --with-default-snmp-version=1 \
-- 
1.7.10.4


-- 
Jonh Wendell
http://www.bani.com.br
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to