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
This commit is contained in:
Ivan Baravy 2017-11-18 03:24:17 +00:00
parent 5e259e1fda
commit 0895e300ed
2 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,7 @@ FOLDERS = {
"termios", "termios",
} }
CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx" CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx -fgnu89-inline"
OBJS={} OBJS={}
for i,v in ipairs(FOLDERS) do for i,v in ipairs(FOLDERS) do
tup.append_table(OBJS, tup.append_table(OBJS,

View File

@ -2,6 +2,7 @@ MELIBC = tup.getcwd() .. "/develop/libraries/menuetlibc"
INCLUDES = INCLUDES .. " -I" .. MELIBC .. "/include" INCLUDES = INCLUDES .. " -I" .. MELIBC .. "/include"
STARTUP = MELIBC .. "/stub/crt0.o" STARTUP = MELIBC .. "/stub/crt0.o"
CFLAGS_c = " -fgnu89-inline"
LDFLAGS = LDFLAGS .. string.gsub(" -T$/include/scripts/menuetos_app_v01.ld -L$/lib", "%$", MELIBC) LDFLAGS = LDFLAGS .. string.gsub(" -T$/include/scripts/menuetos_app_v01.ld -L$/lib", "%$", MELIBC)
tup.append_table(LIBDEPS, {MELIBC .. "/<libc>", MELIBC .. "/<libm>", MELIBC .. "/<libcpp>"}) tup.append_table(LIBDEPS, {MELIBC .. "/<libc>", MELIBC .. "/<libm>", MELIBC .. "/<libcpp>"})
LIBS = LIBS .. " -lcpp -lm -lc" LIBS = LIBS .. " -lcpp -lm -lc"