Subversion Repositories Kolibri OS

Rev

Rev 8371 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8371 Rev 8513
Line 1... Line 1...
1
if tup.getconfig("NO_GCC") ~= "" then return end
1
if tup.getconfig("NO_GCC") ~= "" then return end
2
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR")
2
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR")
3
tup.include(HELPERDIR .. "/use_gcc.lua")
3
tup.include(HELPERDIR .. "/use_gcc.lua")
4
tup.include(HELPERDIR .. "/use_newlib.lua")
4
tup.include(HELPERDIR .. "/use_newlib.lua")
5
CFLAGS = CFLAGS .. " -UWIN32 -U_WIN32 -U__WIN32__ -DLUA_COMPAT_ALL -DLUA_ANSI"
5
CFLAGS = "-fno-ident -O2 -fomit-frame-pointer -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32  -DLUA_COMPAT_ALL -DLUA_ANSI"
6
 
-
 
7
LDFLAGS = "-call_shared -S -nostdlib -T$(NEWLIB_BASE)/app-dynamic.lds --image-base 0 -L$(NEWLIB_LIB)"
-
 
8
LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc --subsystem native"
6
LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc --subsystem native"
9
compile_gcc{
7
compile_gcc{
10
  "lapi.c",
8
  "lapi.c",
11
  "lauxlib.c",
9
  "lauxlib.c",
12
  "lbaselib.c",
10
  "lbaselib.c",