Skip to content

Commit

Permalink
build: Fix building on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
0Alastair1 authored and mborgerson committed Mar 15, 2024
1 parent 0c21a5f commit 14def2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ case "$platform" in # Adjust compilation options based on platform
CYGWIN*|MINGW*|MSYS*)
echo 'Compiling for Windows...'
sys_cflags='-Wno-error'
CFLAGS="${CFLAGS} -lIphlpapi -lCrypt32" # workaround for linking libs on mingw
opts="$opts --disable-fortify-source"
postbuild='package_windows' # set the above function to be called after build
target="qemu-system-i386w.exe"
Expand Down

0 comments on commit 14def2a

Please sign in to comment.