Fix android build
This commit is contained in:
parent
02580dea38
commit
20da730321
|
@ -82,6 +82,9 @@ clean:
|
|||
mv main.k main.c
|
||||
rm -f ${BINS2} r2
|
||||
|
||||
SOURCES= main.c rabin2.c radare2.c radiff2.c rafind2.c
|
||||
SOURCES+=rahash2.c rarun2.c rasm2.c rax2.c ragg2.c
|
||||
|
||||
build:
|
||||
mv main.c main.k
|
||||
rm -f *.[ch]
|
||||
|
@ -94,7 +97,7 @@ build:
|
|||
rm -f _$$a ; \
|
||||
done
|
||||
rm -f _*
|
||||
${CC} -o radare2 *.c ${CFLAGS} ${LDFLAGS}
|
||||
${CC} -o radare2 ${SOURCES} ${CFLAGS} ${LDFLAGS}
|
||||
mv main.c main.k
|
||||
rm -f *.[ch]
|
||||
mv main.k main.c
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
BUILD=1
|
||||
PREFIX="/data/data/org.radare.installer/radare2"
|
||||
if [ -z "${NDK}" ]; then
|
||||
echo "use ./android-{arm|mips|x86}.sh"
|
||||
|
@ -62,6 +63,7 @@ echo NDK_ARCH: ${NDK_ARCH}
|
|||
echo "Using NDK_ARCH: ${NDK_ARCH}"
|
||||
echo "Using STATIC_BUILD: ${STATIC_BUILD}"
|
||||
|
||||
if [ "${BUILD}" = 1 ]; then
|
||||
# start build
|
||||
sleep 2
|
||||
|
||||
|
@ -76,6 +78,7 @@ echo ./configure --with-compiler=android --with-ostype=android \
|
|||
./configure --with-compiler=android --with-ostype=android \
|
||||
--without-ewf --without-ssl --prefix=${PREFIX} ${CFGFLAGS} || exit 1
|
||||
make -s -j 4 || exit 1
|
||||
fi
|
||||
rm -rf $D
|
||||
mkdir -p $D
|
||||
|
||||
|
|
Loading…
Reference in New Issue