2011-09-10 00:32:48 +00:00
|
|
|
#!/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}
|
2011-09-19 19:08:26 +00:00
|
|
|
# TODO: add support for ccache
|
2011-09-14 12:01:21 +00:00
|
|
|
|
2015-03-20 15:53:55 +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
|
|
|
|
|
2011-09-10 00:32:48 +00:00
|
|
|
make clean
|
2018-01-11 22:14:00 +00:00
|
|
|
./configure --with-compiler=x86_64-w64-mingw32-gcc --with-ostype=windows --host=x86_64-unknown-windows
|
2017-04-07 22:54:41 +00:00
|
|
|
make -s -j ${MAKE_JOBS} CC="${C} -g -static-libgcc" && \
|
2015-03-20 12:07:56 +00:00
|
|
|
make w64dist
|