diff --git a/contrib/other/lua-5.2.0/Tupfile.lua b/contrib/other/lua-5.2.0/Tupfile.lua index 85fd26e0af..8a8ffd705a 100644 --- a/contrib/other/lua-5.2.0/Tupfile.lua +++ b/contrib/other/lua-5.2.0/Tupfile.lua @@ -2,9 +2,7 @@ if tup.getconfig("NO_GCC") ~= "" then return end HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR") tup.include(HELPERDIR .. "/use_gcc.lua") tup.include(HELPERDIR .. "/use_newlib.lua") -CFLAGS = CFLAGS .. " -UWIN32 -U_WIN32 -U__WIN32__ -DLUA_COMPAT_ALL -DLUA_ANSI" - -LDFLAGS = "-call_shared -S -nostdlib -T$(NEWLIB_BASE)/app-dynamic.lds --image-base 0 -L$(NEWLIB_LIB)" +CFLAGS = "-fno-ident -O2 -fomit-frame-pointer -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -DLUA_COMPAT_ALL -DLUA_ANSI" LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc --subsystem native" compile_gcc{ "lapi.c",