radare2/sys/termux.sh

14 lines
419 B
Bash
Raw Normal View History

#!/data/data/com.termux/files/usr/bin/bash
2021-03-02 01:35:23 +01:00
if [ -z "${PREFIX}" ]; then
echo "PREFIX env var not set, are you running this script from Termux?"
PREFIX=/data/data/com.termux/files/usr
fi
export ANDROID=1
# make clean > /dev/null 2>&1
rm -f libr/include/r_version.h
2021-03-02 01:35:23 +01:00
bash ./configure --with-compiler=termux --prefix=${PREFIX}
touch -t 19700101 libr/include/r_version.h
2021-03-02 01:35:23 +01:00
rm -f "${PREFIX}/lib/"libr_*
make -j2
make symstall