Fix build for mips* archs.
OpenSSL's 'make depend' fails if _MIPS_SZLONG is not set
This commit is contained in:
parent
8d7c32c84b
commit
d5e937d2a0
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue