1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 12:36:01 -07:00
libsodium/dist-build/android.sh
2013-01-21 21:25:49 -08:00

21 lines
541 B
Bash
Executable File

#! /bin/sh
export CFLAGS="-Os -mthumb"
export DROID_HOST=darwin-x86
export LDFLAGS="-mthumb"
export NDK_PLATFORM=8
export NDK_ROOT=/usr/local/Cellar/android-ndk/r8d
export TARGET_TOOLCHAIN_VERSION=4.4.3
export TARGET=arm-linux-androideabi
export NDK_TARGET="arm-linux-androideabi-${TARGET_TOOLCHAIN_VERSION}"
export AR=droid-ar
export AS=droid-as
export CC=droid-gcc
export LD=droid-ld
export NM=droid-nm
export OBJCOPY=droid-objcopy
export RANLIB=droid-ranlib
export STRIP=droid-strip
./configure --host=arm-linux-androideabi && make -j3