1. export ndk-path
voyzer@debian:/workplace/openssl/openssl_v3.4.0$ export ANDROID_NDK_ROOT=/workplace/android-ndk/android-ndk-r26d
2. Add ndk bin path
voyzer@debian:/workplace/openssl/openssl_v3.4.0$ PATH=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
3. openssl configure
voyzer@debian:/workplace/openssl/openssl_v3.4.0$ voyzer@debian:/workplace/openssl/openssl_v3.4.0$ ./Configure enable-fips enable-tfo shared android-arm64 --prefix=/workplace/openssl/release_arm64-v8a
Configuring OpenSSL version 3.4.0-dev for target android-arm
Using os-specific seed configuration
Created configdata.pm
Running configdata.pm
Created Makefile.in
Created Makefile
Created include/openssl/configuration.h
**********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** and include the output from the following command: ***
*** ***
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL.md file first) ***
*** ***
**********************************************************************
4. build
make
make test
make install