1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-26 13:51:04 -07:00
libsodium/dist-build/android.sh

28 lines
793 B
Bash
Raw Normal View History

#! /bin/sh
export CFLAGS="-Os -mthumb"
export DROID_HOST=darwin-x86
export LDFLAGS="-mthumb"
export NDK_PLATFORM=9
2013-04-25 22:56:45 -07:00
export NDK_ROOT=/usr/local/Cellar/android-ndk/r8e
2013-05-04 13:16:57 -07:00
export NDK_ANDROID_SOURCES="${NDK_ROOT}/sources/android"
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
export PREFIX="$(pwd)/libsodium-android"
./configure --host=arm-linux-androideabi \
2013-06-09 12:14:31 -07:00
--disable-pie \
--disable-shared \
--prefix="$PREFIX" && \
make -j3 install &&
echo "libsodium has been installed into $PREFIX"