From 2e59f9740a29439df7c7a56cf0ae83dec3081d31 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 11 Aug 2014 13:49:21 -0400 Subject: initial import of debian version from mentors --- dist-build/ios.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dist-build/ios.sh (limited to 'dist-build/ios.sh') diff --git a/dist-build/ios.sh b/dist-build/ios.sh new file mode 100755 index 0000000..cd8384a --- /dev/null +++ b/dist-build/ios.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +export XCODEDIR=$(xcode-select -p) +export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer" +export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH" +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 \ + --prefix="$PREFIX" && \ +make clean && \ +make -j3 install && \ +echo "libsodium has been installed into $PREFIX" -- cgit v1.2.3