Skip to content

Commit

Permalink
mingw build script for ubuntu/debian needed a minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
mywave82 committed Feb 19, 2024
1 parent a347946 commit 2485703
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mingw/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ if test "$1" != "x86_64-w64-mingw32" && test "$1" != "i686-w64-mingw32"; then ec
test -f ./Makefile && make clean || true

sudo apt-get install mingw-w64-tools mingw-w64 libz-mingw-w64-dev nasm cmake

host=$1
if test "$host" == "i686-w64-mingw32"; then
sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
else
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
fi

install=`pwd`/$host-install
prefix=`pwd`/$host-prefix
mkdir -p $host-src
Expand Down

0 comments on commit 2485703

Please sign in to comment.