[tor-commits] [orbot/master] Fix build for mips* archs.
n8fr8 at torproject.org
n8fr8 at torproject.org
Thu Jun 25 14:59:57 UTC 2015
commit d5e937d2a0d1ab07cdff1f10ee375181d7d9478a
Author: Ø£ØÙ
د اÙÙ
ØÙ
Ùد٠(Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>
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:
More information about the tor-commits
mailing list