Fix build for mips* archs.

OpenSSL's 'make depend' fails if _MIPS_SZLONG is not set
This commit is contained in:
أحمد المحمودي (Ahmed El-Mahmoudy) 2015-04-29 22:57:13 +02:00
parent 8d7c32c84b
commit d5e937d2a0
1 changed files with 10 additions and 1 deletions

11
external/Makefile vendored
View File

@ -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' # 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= OPENSSL_CONF_FLAG=
ifneq ($(findstring 64, $(NDK_ABI)),) 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 endif
lib/libcrypto.a: lib/libcrypto.a: