uname -s under MSYS2 never reports Windows_NT, so build.sh picked bmake.mk and gmake.mk's platform branches silently fell through to the Linux path (.so + -ldl), breaking the link. Detect MINGW/MSYS/ UCRT/CLANG uname prefixes in build.sh and route to gmake.mk; export UNAME_S once so make doesn't call uname again. gmake.mk, test/gmake.mk, and module_template/gmake.mk now derive Windows-vs-Unix from uname instead of $(OS), with the cmd.exe/batch command path reserved for environments without a POSIX shell (MSYS2 keeps mkdir -p/rm -rf).
17 lines
496 B
C
17 lines
496 B
C
#ifndef STK_VERSION_H
|
|
#define STK_VERSION_H
|
|
|
|
#define STK_VERSION_MAJOR 1
|
|
#define STK_VERSION_MINOR 0
|
|
#define STK_VERSION_PATCH 1
|
|
|
|
#define STK_STRINGIFY_HELPER(x) #x
|
|
#define STK_STRINGIFY(x) STK_STRINGIFY_HELPER(x)
|
|
|
|
#define STK_VERSION_STRING \
|
|
STK_STRINGIFY(STK_VERSION_MAJOR) \
|
|
"." STK_STRINGIFY(STK_VERSION_MINOR) "." STK_STRINGIFY( \
|
|
STK_VERSION_PATCH)
|
|
|
|
#endif /* STK_VERSION_H */
|