[PATCH 12/12] MINGW: config.mak.uname: add explicit way to request MinGW-build
- From
Marat Radchenko <marat@slonopotamus.org>
- Date
- Apr 29, 2014, 09:12 UTC
- Message-ID
- <1398762726-22825-13-git-send-email-marat@slonopotamus.org>
- In-Reply-To
- <1398762726-22825-1-git-send-email-marat@slonopotamus.org>
When crosscompiling, one cannot rely on `uname` from host system. Thus, add an option to use `make MINGW=1` for building MinGW build from non-MinGW host (Linux, for example).
Signed-off-by: Marat Radchenko <marat@slonopotamus.org> --- config.mak.uname | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/config.mak.uname b/config.mak.uname index d5f7953..c7f3d74 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -13,6 +13,11 @@ ifdef MSVC uname_O := Windows endif +ifdef MINGW + uname_S := MINGW + uname_O := MINGW +endif + # We choose to avoid "if .. else if .. else .. endif endif" # because maintaining the nesting to match is a pain. If # we had "elif" things would have been much nicer...
-- 1.9.1