diff --git a/contrib/other/lua-5.2.0/Tupfile.lua b/contrib/other/lua-5.2.0/Tupfile.lua index 9e95c3bb78..85fd26e0af 100644 --- a/contrib/other/lua-5.2.0/Tupfile.lua +++ b/contrib/other/lua-5.2.0/Tupfile.lua @@ -4,7 +4,7 @@ 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" +LDFLAGS = "-call_shared -S -nostdlib -T$(NEWLIB_BASE)/app-dynamic.lds --image-base 0 -L$(NEWLIB_LIB)" LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc --subsystem native" compile_gcc{ "lapi.c",