lua-users home
lua-l archive

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


>> 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[1].


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[3].

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 [1], 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 [2].  There were concerns
with the original design, but I haven't gotten around to it recently
to propose any alternative.

    [1] http://lua-users.org/wiki/BuildingLua
    [2] http://lua-users.org/wiki/BuildingModules
    [3] http://pkg-lua.alioth.debian.org