Skip to content

Commit

Permalink
Updated the Cross Compiling section
Browse files Browse the repository at this point in the history
  • Loading branch information
andreafabrizi committed Apr 23, 2013
1 parent 19b73be commit 0edb7bb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,18 @@ Example:
`gcc -DDETACH -DNORENAME -Wall -s -o prism prism.c`

## Cross Compiling:
TO DO

* **Android**
Change the shell to */system/bin/sh*
`apt-get install gcc-arm-linux-gnueabi`
`arm-linux-gnueabi-gcc -DSTATIC -DDETACH -DNORENAME -static -march=armv5 prism.c -o prism`

* **Linux 64bit** (using a 32bit host system)
`apt-get install libc6-dev-amd64`
`gcc -DDETACH -m64 -Wall -s -o prism prism.c`

* **Linux 32bit** (using a 64bit host system)
`apt-get install libc6-dev-i386`
`gcc -DDETACH -m32 -Wall -s -o prism prism.c`

## Backdoor building information

Expand Down

0 comments on commit 0edb7bb

Please sign in to comment.