Fix build on iOS (without debugger)

This commit is contained in:
pancake 2012-10-30 18:20:51 +01:00
parent ea33e9af8a
commit 78ce28b980
4 changed files with 12 additions and 10 deletions

View File

@ -15,19 +15,16 @@ Setup SDK
apt-get install com.bigboss.20toolchain
cp libSystem.dylib /usr/lib
cd /usr/lib ; ln -sf libSystem.dylib libm.dylib
apt-get install make vim gawk
apt-get install make vim gawk git
4) /var/include/sys/stat.h is broken.
Solution: add 'int foo[3];' after 'st_rdev' at line 178
5) install mercurial
easy_install mercurial
Compilation
===========
export CC=gcc
export CFLAGS=-I/var/include
./configure --without-debugger --prefix=/private/var/radare2
./configure --disable-debugger --prefix=/private/var/radare2 --with-rpath
make
make symstall
@ -36,3 +33,4 @@ Usage
export R2DIR=/private/var/radare2
export PATH=${R2DIR}/bin:$PATH
export DYLD_LIBRARY_PATH=${R2DIR}/lib
r2 ...

View File

@ -4,7 +4,11 @@ CFLAGS+=-I../../include
HOST_CC=gcc
ifeq ($(HAVE_CPARSE),1)
all: tree.o
else
all:
endif
tree.o: lex.yy.o

View File

@ -485,10 +485,10 @@ typedef struct dis_buffer dis_buffer_t;
/* common Unix typedefs used in m68k_disasm.c */
#if !defined(_SYS_TYPES_H)
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
#define u_char unsigned char
#define u_short unsigned short
#define u_int unsigned int
#define u_long unsigned long
#endif
typedef unsigned long vm68k_offset_t;
typedef unsigned long db_expr_t; /*@@@*/

View File

@ -6,7 +6,7 @@
#include <r_lib.h>
#include <r_cons.h>
#if __APPLE__
#if __APPLE__ && DEBUGGER
#define EXCEPTION_PORT 0