dmajkic/redis — pull request #2 by nguillaumin (2012-03-14 00:03:35+00:00)
Title: Fix Makefile for cross-compilation builds

Allowed for `uname_S` and `osname` to be specified on the command line, needed
when building the Windows version from a Linux box using MinGW. In this case
osname is detected as `Linux` but we really want it to be `MINGW32_NT`.

With this fix you can build it with `CC=my-cross-compiler osname=MINGW32_NT make all`

This sounds a bit hacky but does the job :) Comments and feedback welcome.

Thanks,

Nico