mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-30 16:40:57 +00:00
Fix build on iOS (without debugger)
This commit is contained in:
parent
ea33e9af8a
commit
78ce28b980
@ -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 ...
|
||||
|
@ -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
|
||||
|
||||
|
@ -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; /*@@@*/
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <r_lib.h>
|
||||
#include <r_cons.h>
|
||||
|
||||
#if __APPLE__
|
||||
#if __APPLE__ && DEBUGGER
|
||||
|
||||
#define EXCEPTION_PORT 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user