[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (rc2) now available
- From: Shmuel Zeigerman <shmuz@...>
- Date: Sat, 26 Nov 2011 11:43:46 +0200
On 25/11/2011 18:46, Hakki Dogusan wrote:
Thanks. It compiles with MinGW (gcc version 4.6.1 (tdm-1)).
[...]
Note: Ctrl+D crashes Lua.exe on WinXP; You need to use Ctrl+C instead :)
Tried it with two 32-bit builds:
MinGW (gcc 4.5.2 (tdm-1))
MinGW (gcc 4.6.1 (tdm64-1))
and I can't confirm crash with Ctrl+D, on my Windows XP SP3 it behaves
as it used to:
> ^D
stdin:1: unexpected symbol near char(4)
I'd propose a small change to mingw target in the Makefile
(without this change, command line setting of MYLDFLAGS has no effect):
mingw:
$(MAKE) "LUA_A=lua52.dll" "LUA_T=lua.exe" \
- "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
+ "AR=$(CC) -shared $(LDFLAGS) -o" "RANLIB=strip --strip-unneeded" \
"SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
$(MAKE) "LUAC_T=luac.exe" luac.exe
--
Shmuel