forked from aria2/aria2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we linked with zlib shipped with NDK, but it seems this is not part of NDK API, and thus could break our app.
- Loading branch information
1 parent
eb9dafc
commit fb720b3
Showing
3 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/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 |