mirror of
https://github.com/aria2/aria2.git
synced 2024-11-24 02:23:38 +08:00
fb720b3077
Previously, we linked with zlib shipped with NDK, but it seems this is not part of NDK API, and thus could break our app.
23 lines
416 B
Bash
Executable File
23 lines
416 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
if [ -z "$ANDROID_HOME" ]; then
|
|
echo 'No $ANDROID_HOME specified.'
|
|
exit 1
|
|
fi
|
|
PREFIX=$ANDROID_HOME/usr/local
|
|
TOOLCHAIN=$ANDROID_HOME/toolchain
|
|
PATH=$TOOLCHAIN/bin:$PATH
|
|
|
|
HOST=arm-linux-androideabi
|
|
|
|
CC=$HOST-gcc \
|
|
AR=$HOST-ar \
|
|
LD=$HOST-ld \
|
|
RANLIB=$HOST-ranlib \
|
|
STRIP=$HOST-strip \
|
|
./configure \
|
|
--prefix=$PREFIX \
|
|
--libdir=$PREFIX/lib \
|
|
--includedir=$PREFIX/include \
|
|
--static
|