radare2/sys/mingw64.sh
2017-04-08 00:54:41 +02:00

23 lines
505 B
Bash
Executable File

#!/bin/sh
MAKE_JOBS=8
# find root
cd "$(dirname "$PWD/$0")" ; cd ..
export PATH=${PWD}/sys/_work/mingw64/bin:${PATH}
# TODO: add support for ccache
type x86_64-w64-mingw32-gcc >/dev/null 2>&1
if [ $? = 0 ]; then
C=x86_64-w64-mingw32-gcc
else
echo "mingw64 package required."
exit 1
fi
make clean
./configure --without-gmp --with-compiler=x86_64-w64-mingw32-gcc --with-ostype=windows --host=x86_64-unknown-windows --without-ssl
make -s -j ${MAKE_JOBS} CC="${C} -g -static-libgcc" && \
make w64dist