Trying compile openssh for Android

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 \

$NDK_ROOT/ndk-build -j$JOBS -C $SCRIPTPATH openssh

The makefile for the lib:

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: 

0 Answers
Edit Account
Change Settings
Email Notifications Notifications will be sent to
Select option for your email notifications:
Mature / News Filter We'll send on email when new jobs are posted
Option 2 for email notification We'll send on email when new jobs are posted