forked from KolibriOS/kolibrios
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:
parent
5e259e1fda
commit
0895e300ed
@ -68,7 +68,7 @@ FOLDERS = {
|
||||
"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={}
|
||||
for i,v in ipairs(FOLDERS) do
|
||||
tup.append_table(OBJS,
|
||||
|
@ -2,6 +2,7 @@ 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"
|
||||
|
Loading…
Reference in New Issue
Block a user