Hi all,
I'm trying to compile OpenSSL for Android, after looking at Google I found this page:
I followed step by step but when I verified my lib (readelf -h ./libcrypto.a | grep -i 'class\|machine' | head -2) I realized that the lib was created for my machine (x86_64) not Android (arm).
So, I changed the configure command to:
./Configure android --openssldir=/home/ec2-user/android-openssl/android-12
And I got the following error:
make[2]: Entering directory `/home/ec2-user/android-openssl/openssl-1.1.0c'
LD_LIBRARY_PATH=: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSLDIR="/home/ec2-user/android-openssl/android-12" -DENGINESDIR="/usr/local/lib/engines-1.1" -Wall -O3 -pthread -mandroid -fPIC --sysroot= -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -Wl,-znodelete -shared -Wl,-Bsymbolic -Wl,-soname=libcrypto.so.1.1 -o ./libcrypto.so.1.1 -Wl,--whole-archive,--version-script=crypto.map ./libcrypto.a -Wl,--no-whole-archive -ldl
/usr/bin/ld: cannot find crtbegin_so.o: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [link_shlib.linux-shared] Error 1
make[2]: Leaving directory `/home/ec2-user/android-openssl/openssl-1.1.0c'
make[1]: *** [libcrypto.so] Error 2
make[1]: Leaving directory `/home/ec2-user/android-openssl/openssl-1.1.0c'
make: *** [all] Error 2
Someone already compiled the OpenSSL version 1.1.0c for Android and can help me?
Thanks
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users