From 4da8c1b5140f9a1c4062dcfedbac3024ab3b85e5 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 04 2020 15:08:13 +0000 Subject: README: how to build for mingw targets or otherwise non-modern systems. --- diff --git a/README b/README index 10d410a..6aa0cd4 100644 --- a/README +++ b/README @@ -47,6 +47,14 @@ effort, ease of customization, and long-term maintenance. - the compiler should support -std=c99; - the system's libc should support -D_XOPEN_SOURCE=700. +If building for (native) mingw development, please cross-build slibtool +under your posix environment of choice (e.g. midipix, cygwin, msys2) and +install it alongside the rest of your (cross-built) mingw toolchain. + +If your system libc only supports -D_XOPEN_SOURCE=600 then you should be +able to build slibtool after slightly tweaking the code and/or setting +a few config-time environment variables (such as CFLAGS and LDFLAGS). + ## Usage With most packages, simply adding `LIBTOOL=slibtool` to the `make` invocation