Skip to content

Commit 9796dca

Browse files
committed
doc: Install only "-posix" MinGW compiler when possible
1 parent 0bbae23 commit 9796dca

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/build-windows.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,17 @@ Acquire the source in the usual way:
4848
## Building for 64-bit Windows
4949

5050
The first step is to install the mingw-w64 cross-compilation tool chain:
51+
- on modern systems (Ubuntu 21.04 Hirsute Hippo or newer, Debian 11 Bullseye or newer):
5152

52-
sudo apt install g++-mingw-w64-x86-64
53+
```sh
54+
sudo apt install g++-mingw-w64-x86-64-posix
55+
```
56+
57+
- on older systems:
58+
59+
```sh
60+
sudo apt install g++-mingw-w64-x86-64
61+
```
5362

5463
Once the toolchain is installed the build steps are common:
5564

0 commit comments

Comments
 (0)