Added configuration option to change the configuration flags.

This commit is contained in:
Daniel Persson 2018-03-06 20:27:47 +01:00
parent 6382b91060
commit a0cbef0a4a

View File

@ -45,9 +45,12 @@ env - PATH="$PATH" \
"$MAKE_TOOLCHAIN" --force --api="$NDK_API_VERSION_COMPAT" \ "$MAKE_TOOLCHAIN" --force --api="$NDK_API_VERSION_COMPAT" \
--arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1 --arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
if [ -z "$LIBSODIUM_ANDROID_CONFIGURE_FLAGS" ]; then
export LIBSODIUM_ANDROID_CONFIGURE_FLAGS="--disable-soname-versions --enable-minimal"
fi
./configure \ ./configure \
--disable-soname-versions \ ${LIBSODIUM_ANDROID_CONFIGURE_FLAGS} \
--enable-minimal \
--host="${HOST_COMPILER}" \ --host="${HOST_COMPILER}" \
--prefix="${PREFIX}" \ --prefix="${PREFIX}" \
--with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1 --with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1
@ -62,8 +65,7 @@ if [ "$NDK_PLATFORM" != "$NDK_PLATFORM_COMPAT" ]; then
--arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1 --arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
./configure \ ./configure \
--disable-soname-versions \ ${LIBSODIUM_ANDROID_CONFIGURE_FLAGS} \
--enable-minimal \
--host="${HOST_COMPILER}" \ --host="${HOST_COMPILER}" \
--prefix="${PREFIX}" \ --prefix="${PREFIX}" \
--with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1 --with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1