From d5e937d2a0d1ab07cdff1f10ee375181d7d9478a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=A3=D8=AD=D9=85=D8=AF=20=D8=A7=D9=84=D9=85=D8=AD=D9=85?= =?UTF-8?q?=D9=88=D8=AF=D9=8A=20=28Ahmed=20El-Mahmoudy=29?= Date: Wed, 29 Apr 2015 22:57:13 +0200 Subject: [PATCH] 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 f499ff50..22af090c 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: