libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / dist-build / android.sh
blob1b4ee8195ccd2d18b01b75aa94f4a19a0335e835
1 #! /bin/sh
3 export CFLAGS="-Os -mthumb"
4 export DROID_HOST=darwin-x86
5 export LDFLAGS="-mthumb"
6 export NDK_PLATFORM=9
7 export NDK_ROOT=/usr/local/Cellar/android-ndk/r8e
8 export NDK_ANDROID_SOURCES="${NDK_ROOT}/sources/android"
9 export TARGET_TOOLCHAIN_VERSION=4.4.3
10 export TARGET=arm-linux-androideabi
11 export NDK_TARGET="arm-linux-androideabi-${TARGET_TOOLCHAIN_VERSION}"
12 export AR=droid-ar
13 export AS=droid-as
14 export CC=droid-gcc
15 export LD=droid-ld
16 export NM=droid-nm
17 export OBJCOPY=droid-objcopy
18 export RANLIB=droid-ranlib
19 export STRIP=droid-strip
21 ./configure --host=arm-linux-androideabi && make -j3