aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/android/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/android/build.sh')
-rwxr-xr-xpackaging/android/build.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index 89ea832af..3d62c4520 100755
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -218,7 +218,12 @@ fi
if [ ! -e "$PKG_CONFIG_LIBDIR/libzip.pc" ] ; then
mkdir -p libzip-build-"$ARCH"
pushd libzip-build-"$ARCH"
- ../libzip/configure --host=${BUILDCHAIN} --prefix="$PREFIX" --enable-static --disable-shared
+ cmake \
+ -DCMAKE_C_COMPILER="$CC" \
+ -DCMAKE_LINKER="$CC" \
+ -DCMAKE_INSTALL_PREFIX="$PREFIX" \
+ -DBUILD_SHARED_LIBS=OFF \
+ ../libzip/
make
make install
popd