lua-users home
lua-l archive

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


Hi,

Nick Gammon wrote:
> On 18/10/2006, at 12:51 AM, Ralph Hempel wrote:
> > I'm currently standardizing my mingw build of Lua
> 
> Can you publish how you did this? I usually build Lua with MS Visual  
> Studio, but was attempting to do a Cygwin build ('make mingw') using  
> the standard distribution.
> 
> However the resulting .dll required cygwin1.dll to be present  
> alongside lua5.1.dll in order to work. Cygwin1.dll is about a 1.2 Mb  
> file, which seems excessive considering Lua's small size.
> 
> However adding -mno-cygwin to the build options gave a heap of  
> undefined references (eg. _setjmp, ___errno).

To use the Cygwin-provided toolchain, you need -mno-cygwin *and*
the mingw target. You can do this without changing the Makefile:

  make "CC=gcc -mno-cygwin" mingw

Or just build Lua using plain MinGW with: make mingw

Bye,
     Mike