Don't initialize outpkt to an unused value.
[tinc] / README.android
1 Quick how-o cross compile tinc for android (done from $HOME/android/):
2
3 - Download android NDK and setup local ARM toolchain:
4 wget http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2
5 tar xfj android-ndk-r8b-linux-x86.tar.bz2
6 ./android-ndk-r8b/build/tools/make-standalone-toolchain.sh --platform=android-5 --install-dir=/tmp/my-android-toolchain
7
8 - Download and cross-compile openSSL for ARM:
9 wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
10 tar xfz openssl-1.0.1c.tar.gz
11 cd openssl-1.0.1c
12 ./Configure dist
13 make CC=/tmp/my-android-toolchain/bin/arm-linux-androideabi-gcc AR="/tmp/my-android-toolchain/bin/arm-linux-androideabi-ar r" RANLIB=/tmp/my-android-toolchain/bin/arm-linux-androideabi-ranlib
14
15 - Clone and cross-compile tinc:
16 git clone git://tinc-vpn.org/tinc
17 cd tinc
18 autoreconf -fsi
19 CC=/tmp/my-android-toolchain/bin/arm-linux-androideabi-gcc ./configure --host=arm-linux --disable-lzo --with-openssl-lib=$HOME/android/openssl-1.0.1c --with-openssl-include=$HOME/android/openssl-1.0.1c/include/
20 make -j5