commit d2cf7213d0287f9777fac583f6889ee18b188f8d
parent 0244f89d7ed602f1159f2d93ce8447dff4c764ca
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date: Mon, 13 Dec 2021 23:44:58 +0000
Fix detection of Windows in build script.
Thanks go to Noelle Leigh <noelle_leigh@fastmail.com> for the initial
report and much help during diagnosis!
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
@@ -29,7 +29,7 @@ mkdir -p bin
CC="${CC:-cc}"
CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas}"
case "$(uname -s 2>/dev/null)" in
-MSYS_NT*) # MSYS2 on Windows
+MSYS_NT*|MINGW*) # MSYS2 on Windows
UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)"
;;
Darwin) # macOS