From 39a54324fbf239a975d19c6a7491f0d149e9239b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 30 May 2013 22:56:18 -0700 Subject: [PATCH] Update Android & iPhone build scripts to build static libraries only. --- dist-build/android.sh | 7 ++++++- dist-build/iphone.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dist-build/android.sh b/dist-build/android.sh index 1b4ee819..f34aa7e0 100755 --- a/dist-build/android.sh +++ b/dist-build/android.sh @@ -17,5 +17,10 @@ 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 && make -j3 +./configure --host=arm-linux-androideabi \ + --disable-shared \ + --prefix="$PREFIX" && \ +make -j3 install && +echo "libsodium has been installed into $PREFIX" diff --git a/dist-build/iphone.sh b/dist-build/iphone.sh index 589b9af4..64d14f40 100755 --- a/dist-build/iphone.sh +++ b/dist-build/iphone.sh @@ -6,5 +6,10 @@ export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH" export SDK="${BASEDIR}/SDKs/iPhoneOS6.1.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 && make -j3 +./configure --host=arm-apple-darwin10 \ + --disable-shared \ + --prefix="$PREFIX" && \ +make -j3 install && \ +echo "libsodium has been installed into $PREFIX"