From 25ee7874ae5ac2d399594822e5f069a8d28bd81c Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 23 Jan 2015 14:01:09 -0800 Subject: [PATCH] fix instructions to source setenv script --- BUILD_ANDROID.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD_ANDROID.md b/BUILD_ANDROID.md index 5eb0292597..f38b9575b2 100644 --- a/BUILD_ANDROID.md +++ b/BUILD_ANDROID.md @@ -37,7 +37,7 @@ You must change two values at the top of the `setenv-android.sh` script - `_ANDR First, make sure `ANDROID_NDK_ROOT` is set in your env. This should be the path to the root of your Android NDK install. `setenv-android.sh` needs `ANDROID_NDK_ROOT` to set the environment variables required for building OpenSSL. -Source the `setenv-android.sh` script so it can set environment variables that OpenSSL will use while compiling. +Source the `setenv-android.sh` script so it can set environment variables that OpenSSL will use while compiling. If you use zsh as your shell you may need to modify the `setenv-android.sh` for it to set the correct variables in your env. We have had issues with `setenv-android.sh` not helping the system use the Android archive tool during compilation. You may also need to set `AR` to point to the `ar` from your NDK AFTER running ./setenv-android.sh. @@ -45,7 +45,7 @@ Note that your path to `arm-linux-androideabi-ar` will probably not be the same ``` export ANDROID_NDK_ROOT=YOUR_NDK_ROOT -./setenv-android.sh +source setenv-android.sh export AR=$ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar ```