aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJarol Rodriguez <jarolrod@tutanota.com>2021-05-27 15:22:46 -0400
committerJarol Rodriguez <jarolrod@tutanota.com>2021-05-27 19:00:34 -0400
commitdafab2b1b37d1966610b2189e71c52e3af38dfaa (patch)
tree0806661015d33f5afdb7c2011f20234c7bd6c9cc /doc
parent5c041cb348e667672c8b5ed504dba05adf60783b (diff)
downloadbitcoin-dafab2b1b37d1966610b2189e71c52e3af38dfaa.tar.xz
doc: improve note on choosing posix mingw32
Diffstat (limited to 'doc')
-rw-r--r--doc/build-windows.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/doc/build-windows.md b/doc/build-windows.md
index 0e92a8aeea..f88b9739de 100644
--- a/doc/build-windows.md
+++ b/doc/build-windows.md
@@ -81,9 +81,26 @@ The first step is to install the mingw-w64 cross-compilation tool chain:
sudo apt install g++-mingw-w64-x86-64
-Ubuntu Bionic 18.04 <sup>[1](#footnote1)</sup>:
+Next, set the default `mingw32 g++` compiler option to POSIX<sup>[1](#footnote1)</sup>:
- sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
+```
+sudo update-alternatives --config x86_64-w64-mingw32-g++
+```
+
+After running the above command, you should see output similar to that below.
+Choose the option that ends with `posix`.
+
+```
+There are 2 choices for the alternative x86_64-w64-mingw32-g++ (providing /usr/bin/x86_64-w64-mingw32-g++).
+
+ Selection Path Priority Status
+------------------------------------------------------------
+ 0 /usr/bin/x86_64-w64-mingw32-g++-win32 60 auto mode
+* 1 /usr/bin/x86_64-w64-mingw32-g++-posix 30 manual mode
+ 2 /usr/bin/x86_64-w64-mingw32-g++-win32 60 manual mode
+
+Press <enter> to keep the current choice[*], or type selection number:
+```
Once the toolchain is installed the build steps are common: