tmake_libsecp256k1.sh: add comment how to cross-compile to Windows - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 875e6b31b1d4fa0e133a7176e7592361c45beee7 DIR parent 322cb566e865badcb3da6629003437819965d744 HTML Author: SomberNight <somber.night@protonmail.com> Date: Sun, 29 Mar 2020 07:51:48 +0200 make_libsecp256k1.sh: add comment how to cross-compile to Windows related: #5976, #6054 Diffstat: M contrib/make_libsecp256k1.sh | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) --- DIR diff --git a/contrib/make_libsecp256k1.sh b/contrib/make_libsecp256k1.sh t@@ -1,5 +1,15 @@ #!/bin/bash +# This script was tested on Linux and MacOS hosts, where it can be used +# to build native libsecp256k1 binaries. +# +# It can also be used to cross-compile to Windows: +# $ sudo apt-get install mingw-w64 +# For a Windows x86 (32-bit) target, run: +# $ GCC_TRIPLET_HOST="i686-w64-mingw32" ./contrib/make_libsecp256k1.sh +# Or for a Windows x86_64 (64-bit) target, run: +# $ GCC_TRIPLET_HOST="x86_64-w64-mingw32" ./contrib/make_libsecp256k1.sh + LIBSECP_VERSION="b408c6a8b287003d1ade5709e6f7bc3c7f1d5be7" set -e