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"