I am trying to cross-compile OpenSSL 3.1.0 as outlined here. Commands I used:
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk/18.1.5063045
export PATH=$PATH:$ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin
git clone git@github.com:openssl/openssl.git
cd openssl
git checkout openssl-3.1.0
mkdir -p build/armel
./Configure linux-generic32 --prefix=$PWD/build/armel
make CC="arm-linux-gnueabi-gcc" AR="arm-linux-gnueabi-ar r" RANLIB="$arm-linux-gnueabi-ranlib"
The make
step fails with:
arm-linux-gnueabi-ar: apps/libapps.a: No such file or directory
make[1]: *** [Makefile:4270: apps/libapps.a] Error 1
make[1]: Leaving directory '/home/user149408/src/openssl'
make: *** [Makefile:3240: build_sw] Error 2
If I do a native build (i.e. without specifying a target for ./Configure
and without any parameters to make
), this step finishes successfully.
What is wrong here, and what can I do about it?