Delete prefix/ and fix static builds (missing libmpc.a) ##build

This commit is contained in:
pancake 2019-07-26 04:56:02 +02:00 committed by radare
parent 305c28a561
commit f88c30dce7
8 changed files with 12 additions and 8 deletions

View file

@ -128,7 +128,7 @@ else
$(CC) -fvisibility=hidden $(MLFLAGS) ${LINK} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -shared -dynamiclib -o libr.${EXT_SO} \
.libr2/*/*.o \
../shlr/gdb/lib/libgdbr.${EXT_AR} ../shlr/java/libr_java.${EXT_AR} \
../shlr/libr_shlr.${EXT_AR} $(E)
../shlr/libr_shlr.${EXT_AR} ../shlr/mpc/libmpc.${EXT_AR} $(E)
endif
#libr.${EXT_SO}: .libr

View file

@ -1 +0,0 @@
../../binr/rabin2/rabin2

View file

@ -1 +0,0 @@
../../binr/radare2/radare2

View file

@ -1 +0,0 @@
../../binr/rahash2/rahash2

View file

@ -1 +0,0 @@
../../binr/rax2/rax2

View file

@ -1 +0,0 @@
../../libr/asm/libr_asm.dylib

View file

@ -1 +0,0 @@
../../libr/bin/libr_bin.dylib

View file

@ -14,6 +14,9 @@ if [ -z "${CPU}" ]; then
# export CPU=armv7
fi
STATIC_BINS=1
CLEAN_BUILD=1
R2BINS="radare2 rabin2 rasm2 r2pm r2agent radiff2 rafind2 ragg2 rahash2 rarun2 rasm2 rax2"
CAPSTONE_ARCHS="arm aarch64"
#export CAPSTONE_MAKEFLAGS="CAPSTONE_ARCHS=\"arm aarch64\""
@ -58,7 +61,7 @@ else
CFGFLAGS=""
fi
if true ; then
if [ "${CLEAN_BUILD}" = 1 ] ; then
${MAKE} clean
cp -f plugins.tiny.cfg plugins.cfg
cp -f plugins.ios.cfg plugins.cfg
@ -74,6 +77,13 @@ fi
if [ $? = 0 ]; then
time ${MAKE} -j${MAKE_JOBS} CAPSTONE_ARCHS="${CAPSTONE_ARCHS}"
if [ $? = 0 ]; then
if [ "${STATIC_BINS}" = 1 ]; then
(
find . -iname '*.dylib' |xargs rm -f
cd binr ; make clean
make
)
fi
( cd binr/radare2 ; ${MAKE} ios_sdk_sign )
rm -rf /tmp/r2ios
${MAKE} install DESTDIR=/tmp/r2ios