diff --git a/kernel/Makefile b/kernel/Makefile index ae199c5ec..4a3d3160f 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -15,7 +15,7 @@ LDADD+= -ltimers -lsys .if ${COMPILER_TYPE} == "ack" LDFLAGS+= -.o .elif ${COMPILER_TYPE} == "gnu" -CPPFLAGS+= -fno-builtin -ffreestanding -fno-stack-protector +CPPFLAGS+= -ffreestanding -fno-stack-protector LDFLAGS+= -T arch/${ARCH}/kernel.lds LDFLAGS+= -nostdlib -L/usr/gnu/lib CFLAGS+=-march=i386 diff --git a/share/mk/bsd.gcc.mk b/share/mk/bsd.gcc.mk index 3a2b0185d..6554b76e2 100644 --- a/share/mk/bsd.gcc.mk +++ b/share/mk/bsd.gcc.mk @@ -1 +1,2 @@ AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix +CFLAGS+= -fno-builtin