mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 01:39:35 +03:00
0895e300ed
One can't build programs that use menuetlibc and the library itself with the latest toolchain from Serge because new GCC assumes C99 inline semantics. Fix it by passing -fgnu89-inline option to such programs. git-svn-id: svn://kolibrios.org@7112 a494cfbc-eb01-0410-851d-a64ba20cac60
13 lines
491 B
Lua
13 lines
491 B
Lua
MELIBC = tup.getcwd() .. "/develop/libraries/menuetlibc"
|
|
|
|
INCLUDES = INCLUDES .. " -I" .. MELIBC .. "/include"
|
|
STARTUP = MELIBC .. "/stub/crt0.o"
|
|
CFLAGS_c = " -fgnu89-inline"
|
|
LDFLAGS = LDFLAGS .. string.gsub(" -T$/include/scripts/menuetos_app_v01.ld -L$/lib", "%$", MELIBC)
|
|
tup.append_table(LIBDEPS, {MELIBC .. "/<libc>", MELIBC .. "/<libm>", MELIBC .. "/<libcpp>"})
|
|
LIBS = LIBS .. " -lcpp -lm -lc"
|
|
|
|
function use_dynamic_stack()
|
|
STARTUP = MELIBC .. "/stub/crt0_dynstack.o"
|
|
end
|