build: Fix building on mingw

This commit is contained in:
Alastair 2024-03-15 14:07:55 +00:00 committed by mborgerson
parent 0c21a5f3b4
commit 14def2a293

View File

@ -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"