I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e232a641 authored by zzz's avatar zzz
Browse files

android: fix gmp configure args

parent 35495e4d
No related branches found
No related tags found
No related merge requests found
# #
# build GMP and libjbigi.so using the Android tools directly # build GMP and libjbigi.so using the Android tools directly
# #
# uncomment to skip
# exit 0
THISDIR=$(realpath $(dirname $(which $0))) THISDIR=$(realpath $(dirname $(which $0)))
cd $THISDIR cd $THISDIR
export NDK=$(realpath ../../../android-ndk-r5b/) export NDK=$(realpath ../../../android-ndk-r5b/)
#
# API level, must match that in ../AndroidManifest.xml
#
LEVEL=3 LEVEL=3
ARCH=arm ARCH=arm
export SYSROOT=$NDK/platforms/android-$LEVEL/arch-$ARCH/ export SYSROOT=$NDK/platforms/android-$LEVEL/arch-$ARCH/
...@@ -16,7 +23,7 @@ export CC="$NDK/toolchains/$AABI/prebuilt/$SYSTEM/bin/${BINPREFIX}gcc --sysroot= ...@@ -16,7 +23,7 @@ export CC="$NDK/toolchains/$AABI/prebuilt/$SYSTEM/bin/${BINPREFIX}gcc --sysroot=
#echo "CC is $CC" #echo "CC is $CC"
JBIGI=$(realpath ../../core/c/jbigi) JBIGI=$(realpath ../../core/c/jbigi)
GMPVER=5.0.2 GMPVER=4.3.2
GMP=$JBIGI/gmp-$GMPVER GMP=$JBIGI/gmp-$GMPVER
if [ ! -d $GMP ] if [ ! -d $GMP ]
...@@ -43,7 +50,7 @@ cd build ...@@ -43,7 +50,7 @@ cd build
if [ ! -f config.status ] if [ ! -f config.status ]
then then
echo "Configuring GMP..." 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 fi
echo "Building GMP..." echo "Building GMP..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment