]> Git Repo - VerusCoin.git/blob - zcutil/build-win.sh
Merge branch 'dev' into jl777
[VerusCoin.git] / zcutil / build-win.sh
1 #!/bin/bash
2 HOST=x86_64-w64-mingw32
3 CXX=x86_64-w64-mingw32-g++-posix
4 CC=x86_64-w64-mingw32-gcc-posix
5 PREFIX="$(pwd)/depends/$HOST"
6
7 set -eu -o pipefail
8
9 set -x
10 cd "$(dirname "$(readlink -f "$0")")/.."
11
12 cd depends/ && make HOST=$HOST V=1 NO_QT=1 && cd ../
13 ./autogen.sh
14 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
15 sed -i 's/-lboost_system-mt /-lboost_system-mt-s /' configure
16 cd src/
17 CC="${CC}" CXX="${CXX}" make V=1  komodod.exe komodo-cli.exe komodo-tx.exe
This page took 0.023823 seconds and 4 git commands to generate.