4

while compiling android firmware on linux Ubuntu 16.04 x86-64 host

uname -sm
Linux x86_64

following error occur in boringssl module:

out/host/linux-x86/obj/SHARED_LIBRARIES/libcrypto-host_intermediates/src/crypto/sha/sha512.o: 
In function `SHA512_Transform':
/media/compilation/projects/android/beagle2/external/boringssl/src/crypto/sha/sha512.c:184: 
undefined reference to `sha512_block_data_order'

and there is a long list of other symbols missing specifically for libcrypto-host module.

tried and solved by removing linux platform escape in "external/boringssl/Android.mk"

was:

ifneq ($(HOST_OS),linux)
LOCAL_CFLAGS += -DOPENSSL_NO_ASM
endif

now just:

LOCAL_CFLAGS += -DOPENSSL_NO_ASM

please confirm if it's the correct approach or there is another way to fix missing flag application?

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.