summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/CMakeLists.txt2
-rwxr-xr-xapp/libs/build-openssl.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index c56f72d..e994569 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -14,7 +14,7 @@ add_custom_command(OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libssl.so ${CMAKE_LI
OUTPUT_DIR=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
ANDROID_NDK=${ANDROID_NDK}
ANDROID_ABI=${ANDROID_ABI}
- ANDROID_LLVM_TOOLCHAIN_PREFIX=${ANDROID_LLVM_TOOLCHAIN_PREFIX}
+ ANDROID_CXX_COMPILER=${CMAKE_CXX_COMPILER}
${CMAKE_CURRENT_SOURCE_DIR}/libs/build-openssl.sh
COMMENT "Building OpenSSL"
WORKING_DIRECTORY openssl)
diff --git a/app/libs/build-openssl.sh b/app/libs/build-openssl.sh
index 5e32899..59c2a3b 100755
--- a/app/libs/build-openssl.sh
+++ b/app/libs/build-openssl.sh
@@ -20,7 +20,8 @@ x86_64)
;;
esac
-export PATH="$ANDROID_LLVM_TOOLCHAIN_PREFIX:$PATH"
+toolchain_path=$(dirname $ANDROID_CXX_COMPILER)
+export PATH="$toolchain_path:$PATH"
perl $SOURCE_DIR/Configure shared $target