From 14def2a293c85f378c1a16fe2a950e99df8fcc92 Mon Sep 17 00:00:00 2001 From: Alastair <96997148+0Alastair1@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:07:55 +0000 Subject: [PATCH] build: Fix building on mingw --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 0c3f6f95bd..d73fbeb61b 100755 --- a/build.sh +++ b/build.sh @@ -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"