currently I am trying to cross compile openssh. I already have compiled openssl, however, i am running in troubles for openssh.
This is part of my script to build openSSH:
export SYSROOT="$NDK_ROOT/platforms/$TARGET/arch-arm" export CPPFLAGS="-I$NDK_ROOT/platforms/$TARGET/arch-arm/usr/include --sysroot=$SYSROOT" export CC=$($NDK_ROOT/ndk-which gcc) export LD=$($NDK_ROOT/ndk-which ld) export CPP=$($NDK_ROOT/ndk-which cpp) export CXX=$($NDK_ROOT/ndk-which g++) export AS=$($NDK_ROOT/ndk-which as) export AR=$($NDK_ROOT/ndk-which ar) export RANLIB=$($NDK_ROOT/ndk-which ranlib) export LIBS="-lssl -lcrypto -lz -ldl" export LDFLAGS="-L$SCRIPTPATH/obj/local/armeabi" ./configure --host=arm-linux-androideabi --target=arm-linux-androideabi \ --prefix=/data/local/tmp \ --exec-prefix=/data/local/tmp \ --with-ssl-dir=$SSLPATH \ --disable-utmp \ --disable-wtmp \ --disable-utmpx \ --disable-syslog \ --without-shadow \ --with-md5-passwords $NDK_ROOT/ndk-build -j$JOBS -C $SCRIPTPATH openssh
The makefile for the lib:
SSHL_COMMON_CFLAGS := SSHL_COMMON_CFLAGS += \ -DHAVE_CONFIG_H -DHAVE_MBLEN -DHAVE_ENDGRENT -DHAVE_LLABS -DHAVE_ARC4RANDOM_STIR -DHAVE_GETPAGESIZE SSHL_CSOURCES := ssh_api.c \ ssherr.c \ sshbuf.c \ sshkey.c \ sshbuf-getput-basic.c \ sshbuf-misc.c \ sshbuf-getput-crypto.c \ krl.c \ bitmap.c \ authfd.c authfile.c bufaux.c bufbn.c bufecAdd Comment --> Android makefile android-ndk cross-compiling Your Answer: Submit
Jobseeker Login
Employer Login