fix: support MSYS2 builds on gmake

Detect MINGW/MSYS/UCRT/CLANG/CYGWIN uname prefixes in build.sh and
gmake.mk. Separates building for Windows from running under cmd.exe,
so MSYS2 uses mkdir -p/rm -rf instead of falling through to the
Linux .so/-ldl path.
This commit is contained in:
anth64 committed 2026-11-10 07:51:36 +01:00
1 parent 26d08228a7
commit daa68a836b
2 files changed
+27 -8

No files matched your search

+4 -1
View File
@@ -1,6 +1,9 @@
#!/bin/sh
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
UNAME_S=$(uname -s)
export UNAME_S
OS=$(echo "$UNAME_S" | tr '[:upper:]' '[:lower:]')
if [ "$OS" = "freebsd" ]; then
MK_FILE="bmake.mk"