mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Added configuration option to change the configuration flags.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user