[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Cygwin Target in Lua makefile
- From: "David Manura" <dm.lua@...>
- Date: Tue, 7 Oct 2008 15:53:33 -0400
>> Ralph Hempel wrote:
>>> Is there any desire (or benefit) to having a Cygwin target in
>>> the main Lua makefiles?...
> I'm not sure that they build lua as a dll that can be used for
> linking against other libraries...
Some notes on plain Cygwin builds are now collected in.
On the same topic, it would be nice if someone were to maintain a
Cygwin package for Lua. There are Cygwin packages for Perl, Python,
Ruby, OCaml, Guile/clisp, Prolog, gcc, etc., but not Lua. Though it's
easy enough to build from source, the same reasons apply as for the
Debian packages of Lua.
There's a couple of ways to build Lua under Cygwin, as described
above. Readline support is preferred. You'd generally want shared
library support. You will want to by default link against the Cygwin
DLL/CRT. Ideally, this distribution would include LuaRocks for
building modules against the Cygwin DLL/CRT.
It might also be nice for such a package to provide an alternative
build against MinGW (msvcrt.dll) like "gcc -mno-cygwin" (e.g. maybe
/usr/bin/lua and /usr/bin/lua-mingw)' as also noted in , or
possibly even the MSVC++2005/2008 CRT to support LuaBinaries modules.
A framework for building modules for all three CRT's under Cygwin
with LuaRocks is discussed in the links in . There were concerns
with the original design, but I haven't gotten around to it recently
to propose any alternative.