2014-12-01 12:19:51 +01:00
|
|
|
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")
|
2016-09-28 01:48:10 +02:00
|
|
|
CFLAGS = CFLAGS .. " -UWIN32 -U_WIN32 -U__WIN32__ -DLUA_COMPAT_ALL -DLUA_ANSI"
|
2020-12-11 18:29:47 +01:00
|
|
|
|
2020-12-11 18:31:33 +01:00
|
|
|
LDFLAGS = "-call_shared -S -nostdlib -T$(NEWLIB_BASE)/app-dynamic.lds --image-base 0"
|
2020-12-11 18:17:10 +01:00
|
|
|
LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc --subsystem native"
|
2014-12-01 12:19:51 +01:00
|
|
|
compile_gcc{
|
|
|
|
"lapi.c",
|
|
|
|
"lauxlib.c",
|
|
|
|
"lbaselib.c",
|
|
|
|
"lbitlib.c",
|
|
|
|
"lcode.c",
|
|
|
|
"lcorolib.c",
|
|
|
|
"lctype.c",
|
|
|
|
"ldblib.c",
|
|
|
|
"ldebug.c",
|
|
|
|
"ldo.c",
|
|
|
|
"ldump.c",
|
|
|
|
"lfunc.c",
|
|
|
|
"lgc.c",
|
|
|
|
"linit.c",
|
|
|
|
"liolib.c",
|
|
|
|
"llex.c",
|
|
|
|
"lmathlib.c",
|
|
|
|
"lmem.c",
|
|
|
|
"loadlib.c",
|
|
|
|
"lobject.c",
|
|
|
|
"lopcodes.c",
|
|
|
|
"loslib.c",
|
|
|
|
"lparser.c",
|
|
|
|
"lstate.c",
|
|
|
|
"lstring.c",
|
|
|
|
"lstrlib.c",
|
|
|
|
"ltable.c",
|
|
|
|
"ltablib.c",
|
|
|
|
"ltm.c",
|
|
|
|
"lua.c",
|
|
|
|
"lundump.c",
|
|
|
|
"lvm.c",
|
|
|
|
"lzio.c",
|
|
|
|
"kolibri.c"
|
|
|
|
}
|
|
|
|
link_gcc("lua")
|