Update iPhone build documentation for ARM7 (coolstar's clang toolchain)

This commit is contained in:
pancake 2014-01-18 01:45:28 +01:00
parent bdde8c8918
commit 539236acc8

View File

@ -4,7 +4,7 @@ Setup SDK
Extras:
apt-get install wget inetutils rsync
Mercurial:
apt-get install python setuptools
apt-get install git expat curl
2) Download missing packages from lolcathost:
wget http://lolcathost.org/b/libgcc_4.2-20080410-1-6_iphoneos-arm.deb
@ -38,3 +38,46 @@ Usage
export PATH=${R2DIR}/bin:$PATH
export DYLD_LIBRARY_PATH=${R2DIR}/lib
r2 ...
ARM7 SDK
========
From comstar
apt-get install basename git make expat
apt-get install org.coolstar.iostoolchain
* Copy crt1.o and dylib1.o from your iOS SDK into /usr/lib
/Applications//Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/
* Current r2 build requires 'gcc' as native compiler to
build a standalone 'sdb' to precompile some files. This
dependency will be probably
cd /usr/bin
ln -fs clang gcc
Build:
======
export CC=clang
export CFLAGS=-I/var/include
export CPPFLAGS=-I/var/include
./configure --prefix=/usr --with-ostype=darwin
make
make symstall
Packaging
=========
rm -rf /tmp/r2
make install DESTDIR=/tmp/r2
cd /tmp/r2
tar czvpf ../r2.tgz *
// Clone the cydia repo from radare's github
git clone https://github.com/radare/cydia
cd cydia/radare2*
mkdir root
tar xzvf r2.tgz -C root
vim CONFIG # bump version
make