|
Mike Pall wrote:
Hi, Luiz Henrique de Figueiredo wrote:The attached patch allows Lua to be built on a Cygwin host targetting MinGW: make "CC=gcc -mno-cygwin" mingw # build MinGW versionThanks. Shouldn't we then add a cygwin target as below? cygwin: $(MAKE) "CC=gcc -mno-cygwin" mingwThis would be a misnomer, but you may want to do it anyway.
No, because in this case, mingw is still the target; Cygwin just happens to be the build environment. With the s/gcc/$(CC)/ change, the Makefile basically doesn't care if you are building the mingw target using a MinGW build environment or a Cygwin build environment, and this works out just fine.
[ I guess this requires an explanation:
In addition to all of Mike's good information, I'd like to add that ''make posix'' works just fine for the Cygwin target.
Unless you want readline support or you want to build shared objects (DLLs) instead of a static library. But then most people building Lua from source could figure this out. The rest should be able to use LuaBinaries, I should think. ;)
-Mark