From 31692e78f0ad2f9017d10cd80ca2b65074a071bd Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Fri, 11 Dec 2020 17:29:47 +0000 Subject: [PATCH] Fix LUA git-svn-id: svn://kolibrios.org@8369 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/other/lua-5.2.0/Tupfile.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/other/lua-5.2.0/Tupfile.lua b/contrib/other/lua-5.2.0/Tupfile.lua index 1101431898..f95b8bf72c 100644 --- a/contrib/other/lua-5.2.0/Tupfile.lua +++ b/contrib/other/lua-5.2.0/Tupfile.lua @@ -3,6 +3,8 @@ HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.ge 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)/sources/newlib/app-dynamic.lds --image-base 0" LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc --subsystem native" compile_gcc{ "lapi.c",