Bump capstone and check toolchain in mingw64.sh

This commit is contained in:
pancake 2015-03-20 16:53:55 +01:00
parent f134e056a1
commit 590f9023b0
2 changed files with 9 additions and 1 deletions

View File

@ -8,7 +8,7 @@ CS_TAR=
CS_URL=https://www.github.com/aquynh/capstone.git
CS_UPD=20150320
CS_BRA=next
CS_TIP=8bb1f04bb814ce660be3c6faecbb62c676fa26ed
CS_TIP=1271684973513660ef8a71ecbb013bdb199e67d9
.PHONY: capstone-sync capstone-build all clean mrproper libgdbr libwind

View File

@ -8,6 +8,14 @@ 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} -static-libgcc" && \