[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] Fix build for mips* archs.
commit d5e937d2a0d1ab07cdff1f10ee375181d7d9478a
Author: Ø£ØÙ?د اÙ?Ù?ØÙ?Ù?دÙ? (Ahmed El-Mahmoudy) <aelmahmoudy@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed Apr 29 22:57:13 2015 +0200
Fix build for mips* archs.
OpenSSL's 'make depend' fails if _MIPS_SZLONG is not set
---
external/Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/external/Makefile b/external/Makefile
index f499ff5..22af090 100644
--- a/external/Makefile
+++ b/external/Makefile
@@ -101,7 +101,16 @@ all: assets
# external/lib/libcrypto.a(e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:function rc4_hmac_md5_cipher: error: undefined reference to 'rc4_md5_enc'
OPENSSL_CONF_FLAG=
ifneq ($(findstring 64, $(NDK_ABI)),)
- OPENSSL_CONF_FLAG=no-rc4
+ OPENSSL_CONF_FLAG+=no-rc4
+endif
+
+# OpenSSL's 'make depend' fails if _MIPS_SZLONG is not set:
+ifneq ($(filter mips%, $(NDK_ABI)),)
+ ifneq ($(findstring 64, $(NDK_ABI)),)
+ OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=64
+ else
+ OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=32
+ endif
endif
lib/libcrypto.a:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits