From e232a641a3a562dd30f052acf612ffe9580b5719 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sun, 5 Jun 2011 02:09:12 +0000
Subject: [PATCH] android: fix gmp configure args

---
 android/jni/build.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/android/jni/build.sh b/android/jni/build.sh
index 4b199ad6b8..af5d17220e 100755
--- a/android/jni/build.sh
+++ b/android/jni/build.sh
@@ -1,10 +1,17 @@
 #
 # build GMP and libjbigi.so using the Android tools directly
 #
+
+# uncomment to skip
+# exit 0
+
 THISDIR=$(realpath $(dirname $(which $0)))
 cd $THISDIR
 export NDK=$(realpath ../../../android-ndk-r5b/)
 
+#
+# API level, must match that in ../AndroidManifest.xml
+#
 LEVEL=3
 ARCH=arm
 export SYSROOT=$NDK/platforms/android-$LEVEL/arch-$ARCH/
@@ -16,7 +23,7 @@ export CC="$NDK/toolchains/$AABI/prebuilt/$SYSTEM/bin/${BINPREFIX}gcc --sysroot=
 #echo "CC is $CC"
 
 JBIGI=$(realpath ../../core/c/jbigi)
-GMPVER=5.0.2
+GMPVER=4.3.2
 GMP=$JBIGI/gmp-$GMPVER
 
 if [ ! -d $GMP ]
@@ -43,7 +50,7 @@ cd build
 if [ ! -f config.status ]
 then
 	echo "Configuring GMP..."
-	$GMP/configure --with-pic --build=arm --host=x86 || exit 1
+	$GMP/configure --with-pic --build=x86-none-linux --host=armv5-eabi-linux || exit 1
 fi
 
 echo "Building GMP..."
-- 
GitLab