From 8adcc406c7ea18992c4695b99cead112d0cc673a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 20 Jan 2017 21:47:06 -0800 Subject: Android build.sh: don't try to link against host http_parser Signed-off-by: Dirk Hohndel --- packaging/android/build.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packaging/android/build.sh') diff --git a/packaging/android/build.sh b/packaging/android/build.sh index ea5bc3f79..11ec14e78 100644 --- a/packaging/android/build.sh +++ b/packaging/android/build.sh @@ -220,6 +220,8 @@ if [ ! -e libgit2-${LIBGIT2_VERSION} ] ; then tar -zxf libgit2-${LIBGIT2_VERSION}.tar.gz fi if [ ! -e "$PKG_CONFIG_LIBDIR/libgit2.pc" ] ; then + # We don't want to find the HTTP_Parser package of the build host by mistake + perl -pi -e 's/FIND_PACKAGE\(HTTP_Parser\)/#FIND_PACKAGE(HTTP_Parser)/' libgit2-${LIBGIT2_VERSION}/CMakeLists.txt mkdir -p libgit2-build-$ARCH pushd libgit2-build-$ARCH cmake -DCMAKE_SYSTEM_NAME=Android -DSHA1_TYPE=builtin \ -- cgit v1.2.3-70-g09d2