lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Mike Pall wrote:

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 version

Thanks. Shouldn't we then add a cygwin target as below?

	$(MAKE) "CC=gcc -mno-cygwin" mingw

This 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. ;)