[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1.2-rc1 now available
- From: Mike Pall <mikelu-0703@...>
- Date: Sat, 24 Mar 2007 02:32:58 +0100
Hi,
Mark Edgar wrote:
> Of course, there's no need for a separate 'mingwc' target,
Agree.
> and there's also no need to change LUA_T or LUAC_T:
Maybe that works for MinGW on Windows. But MinGW also comes as a
cross-compiler (e.g. for Linux), so it's still required:
mingw:
$(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
"AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
"MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe
$(MAKE) "LUAC_T=luac.exe" luac.exe
[Cut'n'paste warning: the leading whitespace must be a tab.]
$ size *.exe *.dll
text data bss dec hex filename
23000 3672 288 26960 6950 lua.exe
193286 3128 320 196734 3007e luac.exe
275222 4784 320 280326 44706 lua51.dll
$ objdump -x lua.exe | grep lua51
DLL Name: lua51.dll
$ objdump -x luac.exe | grep lua51
$ wine luac.exe -l - </dev/null
main <stdin:0,0> (1 instruction, 4 bytes at 7FD38138)
0+ params, 2 slots, 0 upvalues, 0 locals, 0 constants, 0 functions
1 [1] RETURN 0 1
So lua.exe is dynamically linked to lua51.dll and luac.exe is
statically linked (and -l works).
Bye,
Mike