radare2/sys/mingw64.sh

23 lines
505 B
Bash
Raw Normal View History

#!/bin/sh
2015-03-20 12:07:56 +00:00
MAKE_JOBS=8
2011-09-14 12:01:21 +00:00
# find root
2015-06-17 02:59:01 +00:00
cd "$(dirname "$PWD/$0")" ; cd ..
2011-09-14 12:01:21 +00:00
export PATH=${PWD}/sys/_work/mingw64/bin:${PATH}
# TODO: add support for ccache
2011-09-14 12:01:21 +00:00
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
2011-09-14 12:01:21 +00:00
./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" && \
2015-03-20 12:07:56 +00:00
make w64dist