1r2 on android
2=============
3
4Install NDK in archlinux x86-64
5 - Enable multilib repo in pacman.conf
6 - pacman -S lib32-glibc lib32-zlib
7
8To build r2 for android you need to install the NDK:
9
10    http://developer.android.com/tools/sdk/ndk/index.html
11
12Edit `~/.r2androidrc` to setup the paths to your ndk
13
14    sys/android-shell.sh
15    ./configure --with-compiler=android --with-ostype=android --prefix=/data/radare2 --without-pic --with-nonpic
16    make -j 4
17
18To compile for android-x86
19
20    export NDK_ARCH=x86
21
22To package:
23
24    mkdir
25    make install DESTDIR=/usr
26
27Build farm, see `sys/android-shell.sh` and `sys/android-build.sh`
28
29    sys/android-shell.sh sys/android-build.sh arm-static
30
31Environment:
32
33    NDK_ARCH=arm|arm64|x86
34