radare2/sys/mingw64.sh

23 lines
502 B
Bash
Raw Normal View History

#!/bin/sh
2015-03-20 20:07:56 +08:00
MAKE_JOBS=8
2011-09-14 20:01:21 +08:00
# find root
2015-06-17 10:59:01 +08:00
cd "$(dirname "$PWD/$0")" ; cd ..
2011-09-14 20:01:21 +08:00
export PATH=${PWD}/sys/_work/mingw64/bin:${PATH}
# TODO: add support for ccache
2011-09-14 20:01:21 +08: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 20:01:21 +08:00
./configure --without-gmp --with-compiler=x86_64-w64-mingw32-gcc --with-ostype=windows --host=x86_64-unknown-windows --without-ssl
2015-03-20 20:07:56 +08:00
make -s -j ${MAKE_JOBS} CC="${C} -static-libgcc" && \
make w64dist