libsodium/dist-build/ios.sh

18 lines
590 B
Bash
Raw Normal View History

#! /bin/sh
2013-11-18 17:59:25 -05:00
export XCODEDIR=$(xcode-select -p)
export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer"
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
2014-06-29 13:55:13 -04:00
export SDK="${BASEDIR}/SDKs/iPhoneOS8.0.sdk"
export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK}"
export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK}"
export PREFIX="$(pwd)/libsodium-ios"
./configure --host=arm-apple-darwin10 \
--disable-shared \
--enable-minimal \
--prefix="$PREFIX" && \
make clean && \
make -j3 install && \
echo "libsodium has been installed into $PREFIX"