Link with -ldl when compiling TFLite for Android.
#! /bin/bash
#
-# Installation script for the TensorFlow library.
+# Installation script for the TensorFlow Lite library (TFLite).
#
# See CK LICENSE.txt for licensing details.
# See CK COPYRIGHT.txt for copyright details.
#
#
-# This is the script for installing packages `lib-tensorflow-*-src-static`.
-# It builds static TensorFlow library using provided scripts in
-# `${CK-TOOLS}/lib-tensorflow-*-src-static/src/tensorflow/contrib/makefile/` directory.
+# This script is for installing packages `lib-tflite-*-src-static`.
+# It builds a static TFLite library using scripts provided in the
+# `${CK_TOOLS}/lib-tflite-*-src-static/src/tensorflow/lite/tools/make/` directory.
#
+set > ~/set.log
function exit_if_error() {
if [ "${?}" != "0" ]; then exit 1; fi
@@ -92,7 +93,8 @@ if [[ "${CK_ANDROID_NDK_ROOT_DIR}" ]]; then
NDK_ROOT="$CK_ANDROID_NDK_ROOT_DIR" \
ANDROID_ARCH="$CK_ANDROID_ABI" \
ANDROID_API="$CK_ANDROID_API_LEVEL" \
- CC_PREFIX="$CC_PREFIX"
+ CC_PREFIX="$CC_PREFIX" \
+ LDFLAGS="${CK_EXTRA_LIB_DL}"
exit_if_error
else
echo
