a2391587c7
compat.h's rss_gb() calls GetProcessMemoryInfo and links psapi via #pragma comment(lib,"psapi.lib") — an MSVC-ism. MinGW gcc ignores that pragma (emits -Wunknown-pragmas), and the Windows LDFLAGS never linked psapi, so on a gcc that doesn't honor the pragma (e.g. 16.1.0 UCRT) the build fails with `undefined reference to GetProcessMemoryInfo`. Add -lpsapi to the Windows LDFLAGS; harmless on toolchains where the pragma also resolves it. Found while building on native Windows 11 with winlibs GCC 16.1. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>