Update Tupfile.lua's for tup-0.8

git-svn-id: svn://kolibrios.org@10042 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2024-05-21 14:45:21 +00:00
parent 0eabeee0d3
commit e9e08c56b6
202 changed files with 1509 additions and 916 deletions

View File

@@ -1,5 +1,6 @@
NEWLIB_BASE = tup.getcwd() .. "/../contrib/sdk/sources/newlib"
NEWLIB_LIB = tup.getcwd() .. "/../contrib/sdk/lib"
SDK_CWD = tup.getcwd() .. "/../contrib/sdk/lib"
SDK_VAR = tup.getvariantdir() .. "/../contrib/sdk/lib"
TOOLCHAIN_LIBPATH = tup.getconfig("TOOLCHAIN_LIBPATH")
-- if not given explicitly in config, try to guess
@@ -10,7 +11,7 @@ if TOOLCHAIN_LIBPATH == "" then
end
end
INCLUDES = INCLUDES .. " -I" .. NEWLIB_BASE .. "/libc/include"
LDFLAGS = LDFLAGS .. " -T$(NEWLIB_BASE)/app-dynamic.lds -L$(NEWLIB_LIB) --image-base 0"
tup.append_table(LIBDEPS, {NEWLIB_LIB .. "/<libc.dll.a>"})
LIBS = LIBS .. "-lgcc -lc.dll"
INCLUDES += " -I$(NEWLIB_BASE)/libc/include"
LDFLAGS += " -T$(NEWLIB_BASE)/app-dynamic.lds -L$(SDK_CWD) -L$(SDK_VAR) --image-base 0"
tup.append_table(LIBDEPS, {SDK_CWD .. "/<libc.dll.a>"})
LIBS += "-lgcc -lc.dll"