2013-01-22 00:25:49 -05:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
export CFLAGS="-Os -mthumb"
|
|
|
|
export DROID_HOST=darwin-x86
|
|
|
|
export LDFLAGS="-mthumb"
|
2013-04-27 14:18:08 -04:00
|
|
|
export NDK_PLATFORM=9
|
2013-04-26 01:56:45 -04:00
|
|
|
export NDK_ROOT=/usr/local/Cellar/android-ndk/r8e
|
2013-05-04 16:16:57 -04:00
|
|
|
export NDK_ANDROID_SOURCES="${NDK_ROOT}/sources/android"
|
2013-04-27 14:18:08 -04:00
|
|
|
export TARGET_TOOLCHAIN_VERSION=4.4.3
|
2013-01-22 00:25:49 -05:00
|
|
|
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
|