Fix iOS build

This commit is contained in:
pancake 2015-06-04 04:30:48 +02:00
parent d7f6b4f6c6
commit c0b1e5fad3
12 changed files with 30 additions and 16 deletions

View File

@ -42,6 +42,6 @@ RAsmPlugin r_asm_plugin_msp430 = {
#ifndef CORELIB
struct r_lib_struct_t radare_plugin = {
.type = R_LIB_TYPE_ASM,
.data = &r_asm_plugin_propeller,
.data = &r_asm_plugin_msp430
};
#endif

View File

@ -1,6 +1,7 @@
OBJ_CR16=asm_cr16.o
OBJ_CR16+=../arch/cr16/cr16_disas.o
CFLAGS+=-I./arch/cr16
CR16_ROOT=$(LIBR)/asm/arch/cr16
OBJ_CR16+=$(CR16_ROOT)/cr16_disas.o
CFLAGS+=-I$(CR16_ROOT)
STATIC_OBJ+=${OBJ_CR16}

View File

@ -1,6 +1,7 @@
EBC_ROOT=$(LIBR)/asm/arch/ebc
OBJ_EBC=asm_ebc.o
OBJ_EBC+=../arch/ebc/ebc_disas.o
CFLAGS+=-I./arch/ebc/
OBJ_EBC+=$(EBC_ROOT)/ebc_disas.o
CFLAGS+=-I$(EBC_ROOT)
STATIC_OBJ+=${OBJ_EBC}
TARGET_EBC=asm_ebc.${EXT_SO}
@ -9,5 +10,6 @@ ifeq ($(WITHPIC),1)
ALL_TARGETS+=${TARGET_EBC}
${TARGET_EBC}: ${OBJ_EBC}
${CC} ${LDFLAGS} ${CFLAGS} -o ${TARGET_EBC} ${OBJ_EBC}
${CC} ${LDFLAGS} ${CFLAGS} \
-o ${TARGET_EBC} ${OBJ_EBC}
endif

View File

@ -1,6 +1,7 @@
OBJ_H8300=asm_h8300.o
OBJ_H8300+=../arch/h8300/h8300_disas.o
CFLAGS+=-I./arch/h8300
H8300_ROOT=$(LIBR)/asm/arch/h8300
OBJ_H8300+=$(H8300_ROOT)/h8300_disas.o
CFLAGS+=-I$(H8300_ROOT)
STATIC_OBJ+=${OBJ_H8300}
TARGET_H8300=asm_h8300.${EXT_SO}

View File

@ -1,6 +1,6 @@
OBJ_MSP430=asm_msp430.o
OBJ_MSP430+=../arch/msp430/msp430_disas.o
CFLAGS+=-I./arch/msp430/
OBJ_MSP430+=$(LIBR)/asm/arch/msp430/msp430_disas.o
CFLAGS+=-I$(LIBR)/asm/arch/msp430/
STATIC_OBJ+=${OBJ_MSP430}
TARGET_MSP430=asm_msp430.${EXT_SO}

View File

@ -1,6 +1,6 @@
OBJ_V850=asm_v850.o
OBJ_V850+=../arch/v850/v850_disas.o
CFLAGS+=-I./arch/v850
OBJ_V850+=$(LIBR)/asm/arch/v850/v850_disas.o
CFLAGS+=-I$(LIBR)/asm/arch/v850
STATIC_OBJ+=${OBJ_V850}

View File

@ -3,7 +3,7 @@ OBJ_ELF+=../format/elf/elf.o ../format/elf/elf_write.o
STATIC_OBJ+=${OBJ_ELF}
TARGET_ELF=bin_elf.${EXT_SO}
LINK+=-lr_db -L../../db
LINK+=-L../../db -lr_db
ifeq ($(WITHPIC),1)
ALL_TARGETS+=${TARGET_ELF}

View File

@ -2,6 +2,7 @@ OBJ_TE=bin_te.o ../format/te/te.o
STATIC_OBJ+=${OBJ_TE}
TARGET_TE=bin_te.${EXT_SO}
LINK+=-L../../db -lr_db $(SHLR)/sdb/src/libsdb.a
ALL_TARGETS+=${TARGET_TE}

View File

@ -1,5 +1,5 @@
PACKAGE=radare2
VERSION=0.9.8.git10
VERSION=0.9.8.git11
ARCH=iphoneos-arm
SECTION=user/shell
PRIORITY=optional

View File

@ -26,14 +26,16 @@ export IOSVER=8.3
export IOSINC=`pwd`/sys/ios-include
export CFLAGS=-O2
if true ; then
if false ; then
make clean
./configure --prefix=${PREFIX} --with-ostype=darwin \
--with-compiler=ios-sdk --target=arm-unknown-darwin
else
true
fi
if [ $? = 0 ]; then
time make -j4
time true # make -j4
if [ $? = 0 ]; then
( cd binr/radare2 ; make ios_sdk_sign )
rm -rf /tmp/r2ios

View File

@ -34,7 +34,10 @@ LDFLAGS="-isysroot ${SDKROOT}"
# -Wl, -syslibroot ${SDKROOT}"
export PATH=${DEVROOT}/usr/bin:${SDKROOT}/Developer/usr/bin:${PATH}
CC=${DEVROOT}/usr/bin/gcc
CC="xcrun --sdk iphoneos gcc"
CXX="xcrun --sdk iphoneos g++"
LD=${CC}
export CC CXX LD
for a in ${CPU} ; do
CFLAGS="${CFLAGS} -arch ${a}"
done

View File

@ -27,6 +27,10 @@ export IOSINC=`pwd`/sys/ios-include
export CFLAGS=-O2
export USE_SIMULATOR=0
if [ "$1" = -s ]; then
exec $SHELL
fi
if true ; then
make clean
cp -f plugins.tiny.cfg plugins.cfg