We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a347946 commit 2485703Copy full SHA for 2485703
mingw/build.sh
@@ -10,7 +10,14 @@ if test "$1" != "x86_64-w64-mingw32" && test "$1" != "i686-w64-mingw32"; then ec
10
test -f ./Makefile && make clean || true
11
12
sudo apt-get install mingw-w64-tools mingw-w64 libz-mingw-w64-dev nasm cmake
13
+
14
host=$1
15
+if test "$host" == "i686-w64-mingw32"; then
16
+ sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
17
+else
18
+ sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
19
+fi
20
21
install=`pwd`/$host-install
22
prefix=`pwd`/$host-prefix
23
mkdir -p $host-src
0 commit comments