Commit 46aaa45 1 parent bc48e30 commit 46aaa45 Copy full SHA for 46aaa45
File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 25
25
if [ -n " $XCODE_VERSION " ] && [ -f " $OSX_SDK_PATH " ]; then
26
26
DOCKER_EXEC tar -C " ${DEPENDS_DIR} /SDKs" -xf " $OSX_SDK_PATH "
27
27
fi
28
+ if [[ $HOST = * -mingw32 ]]; then
29
+ DOCKER_EXEC update-alternatives --set $HOST -g++ \$\( which $HOST -g++-posix\)
30
+ fi
28
31
if [ -z " $NO_DEPENDS " ]; then
29
32
if [[ $DOCKER_NAME_TAG == centos* ]]; then
30
33
# CentOS has problems building the depends if the config shell is not explicitly set
Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ $(package)_config_opts_mingw32 += -no-dbus
164
164
$(package ) _config_opts_mingw32 += -no-freetype
165
165
$(package ) _config_opts_mingw32 += -xplatform win32-g++
166
166
$(package ) _config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package ) _cflags) $($(package ) _cppflags) '"
167
- $(package ) _config_opts_mingw32 += "QMAKE_CXX = '$($(package ) _cxx) '"
168
167
$(package ) _config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package ) _cflags) $($(package ) _cppflags) '"
169
168
$(package ) _config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package ) _ldflags) '"
170
169
$(package ) _config_opts_mingw32 += -device-option CROSS_COMPILE="$(host ) -"
Original file line number Diff line number Diff line change @@ -46,16 +46,13 @@ Acquire the source in the usual way:
46
46
## Building for 64-bit Windows
47
47
48
48
The first step is to install the mingw-w64 cross-compilation tool chain:
49
- - on modern systems (Ubuntu 21.04 Hirsute Hippo or newer, Debian 11 Bullseye or newer):
50
49
51
- ``` sh
52
- sudo apt install g++-mingw-w64-x86-64-posix
53
- ```
50
+ sudo apt install g++-mingw-w64-x86-64
54
51
55
- - on older systems :
52
+ Next, set the default ` mingw32 g++ ` compiler option to POSIX :
56
53
57
- ``` sh
58
- sudo apt install g++-mingw- w64-x86-64
54
+ ```
55
+ sudo update-alternatives --config x86_64- w64-mingw32-g++
59
56
```
60
57
61
58
After running the above command, you should see output similar to that below.
You can’t perform that action at this time.
0 commit comments