From bc3ae3e0734ebcd92ff8bb1f31e26b4ede520fe3 Mon Sep 17 00:00:00 2001 From: ca333 Date: Mon, 9 Oct 2017 12:45:54 +0200 Subject: [PATCH] win 333 --- zcutil/build-win.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 zcutil/build-win.sh diff --git a/zcutil/build-win.sh b/zcutil/build-win.sh new file mode 100755 index 000000000..65e0c8923 --- /dev/null +++ b/zcutil/build-win.sh @@ -0,0 +1,17 @@ +#!/bin/bash +HOST=x86_64-w64-mingw32 +CXX=x86_64-w64-mingw32-g++-posix +CC=x86_64-w64-mingw32-gcc-posix +PREFIX="$(pwd)/depends/$HOST" + +set -eu -o pipefail + +set -x +cd "$(dirname "$(readlink -f "$0")")/.." + +cd depends/ && make HOST=$HOST V=1 NO_QT=1 && cd ../ +./autogen.sh +CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site CXXFLAGS="-DPTW32_STATIC_LIB -DCURL_STATICLIB -DCURVE_ALT_BN128 -fopenmp -pthread" ./configure --prefix="${PREFIX}" --host=x86_64-w64-mingw32 --enable-static --disable-shared +sed -i 's/-lboost_system-mt /-lboost_system-mt-s /' configure +cd src/ +CC="${CC}" CXX="${CXX}" make V=1 komodod.exe komodo-cli.exe komodo-tx.exe