gcc compiles - add -fno-builtin so that gcc optimisations don't break things.
- kernel compile was broken with gcc as putchar() was added by gcc in stacktrace.c - add -fno-builtin everywhere to avoid such problems in the future - -fno-builtin in kernel now redundant
This commit is contained in:
parent
b1847ae244
commit
b3c3a1cb1e
@ -15,7 +15,7 @@ LDADD+= -ltimers -lsys
|
|||||||
.if ${COMPILER_TYPE} == "ack"
|
.if ${COMPILER_TYPE} == "ack"
|
||||||
LDFLAGS+= -.o
|
LDFLAGS+= -.o
|
||||||
.elif ${COMPILER_TYPE} == "gnu"
|
.elif ${COMPILER_TYPE} == "gnu"
|
||||||
CPPFLAGS+= -fno-builtin -ffreestanding -fno-stack-protector
|
CPPFLAGS+= -ffreestanding -fno-stack-protector
|
||||||
LDFLAGS+= -T arch/${ARCH}/kernel.lds
|
LDFLAGS+= -T arch/${ARCH}/kernel.lds
|
||||||
LDFLAGS+= -nostdlib -L/usr/gnu/lib
|
LDFLAGS+= -nostdlib -L/usr/gnu/lib
|
||||||
CFLAGS+=-march=i386
|
CFLAGS+=-march=i386
|
||||||
|
@ -1 +1,2 @@
|
|||||||
AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix
|
AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix
|
||||||
|
CFLAGS+= -fno-builtin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user