lua-users home
lua-l archive

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


> Nope, looks good.  Of course, there's no need for a separate 'mingwc'
> target, and there's also no need to change LUA_T or LUAC_T:
> 
> mingw:
>         $(MAKE) "LUA_A=lua51.dll" \
>        "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
>        "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua
>        $(MAKE) luac

But won't that try to link luac.exe with lua51.dll? That does not work;
luac.exe has to be statically linked with lua51.lib.
--lhf