kolibrios-gitea/programs/use_menuetlibc.lua
Ivan Baravy 0895e300ed Add -fgnu89-inline to menuetlibc related files.
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
2017-11-18 03:24:17 +00:00

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