This results in a working Tor binary!

svn:r20829
This commit is contained in:
Jacob Appelbaum 2009-10-25 04:17:53 +00:00
parent 425493f9fd
commit 03003894dc
1 changed files with 6 additions and 18 deletions

View File

@ -4,7 +4,7 @@ source.
Please install the following prerequisites (instructions for each follows): Please install the following prerequisites (instructions for each follows):
Android OS SDK Android OS SDK
droid-wrapper: http://github.com/tmurakam/droid-wrapper droid-wrapper: http://github.com/tmurakam/droid-wrapper
libevent source libevent source (1.4.12-stable)
Tor source (most recent git master branch) Tor source (most recent git master branch)
Install and prepare the Android OS SDK ( http://source.android.com/download ) Install and prepare the Android OS SDK ( http://source.android.com/download )
@ -48,33 +48,21 @@ We need to set to environment variables for droid-gcc:
export DROID_ROOT=~/mydroid/ export DROID_ROOT=~/mydroid/
export DROID_TARGET=generic export DROID_TARGET=generic
# XXX TODO:
# Do we need this?
Build zlib:
cd ~/mydroid/external/zlib
export ZLIBDIR=`pwd`
CC=droid-gcc LD=droid-ld ./configure
make
# XXX TODO:
# Do we need this?
Build openssl:
cd ~/mydroid/external/openssl/include/openssl/
export OPENSSLDIR=`pwd`
CC=droid-gcc LD=droid-ld ./configure
Fetch and build libevent: Fetch and build libevent:
cd ~/mydroid/external/libevent cd ~/mydroid/external/libevent
svn co https://levent.svn.sourceforge.net/svnroot/levent/tags/release-1.4.12-stable/libevent/ . svn co https://levent.svn.sourceforge.net/svnroot/levent/tags/release-1.4.12-stable/libevent/ .
export LIBEVENTDIR=`pwd` export LIBEVENTDIR=`pwd`
./autogen.sh ./autogen.sh
# http://pastebin.ca/1577159 # http://pastebin.ca/1577207
patch < /tmp/libevent-patch patch < /tmp/libevent-patch
CC=droid-gcc LD=droid-ld ./configure --host=arm-none-linux-gnueabi CC=droid-gcc LD=droid-ld ./configure --host=arm-none-linux-gnueabi
make make
Copy over the libevent library:
cp .libs/libevent.a ~/mydroid/out/target/product/generic/obj/lib
Fetch and build Tor: Fetch and build Tor:
export OPENSSLDIR=`cd ~/mydroid/external/openssl/include/ && pwd` export OPENSSLDIR=`cd ~/mydroid/external/openssl/include/ && pwd`