[openssl-dev] [openssl.org #4663] #4536 Android arm-v8/arm64/aarch64 Support

ndof@gmx.li via RT rt at openssl.org
Sun Aug 28 15:07:55 UTC 2016


After some test, I found out, that with 1.1.0 it will be able to build.
But the way on the wiki don't work.
The only way I found was this:

NDK=/PathToNDK
TargetDir=/opt/openssl-android


API=24
ARCH=arch-arm64
TARGET=aarch64-linux-android
BUILD_OS=linux-x86_64
TOOLCHAIN_BIN=${NDK}/toolchains/${TARGET}-4.9/prebuilt/${BUILD_OS}/bin
export SYSROOT=${NDK}/platforms/android-${API}/${ARCH}
export CROSS_SYSROOT=${SYSROOT}
export CC=${TOOLCHAIN_BIN}/${TARGET}-gcc
export AR=${TOOLCHAIN_BIN}/${TARGET}-ar
export RANLIB=${TOOLCHAIN_BIN}/${TARGET}-ranlib
./Configure shared android64-aarch64 --prefix=$TargetDir
make depend
make -j4
make install_sw
rm -rf $TargetDir/bin
rm -rf $TargetDir/ssl
find $TargetDir/  -type f -executable -print0 | xargs -0 chmod +w
find $TargetDir/  -type f -executable -print0 | xargs -0
${TOOLCHAIN_BIN}/${TARGET}-strip --strip-all

using OpenSSL 1.1.0 and NDK r12b


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4663
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list