kernel: don't use -ffreestanding

. workaround for clang's stdint.h __STDC_HOSTED__ test
	  that causes the host stdint.h to be ignored for -ffreestanding,
	  causing a type to be double-defined in the kernel
This commit is contained in:
Ben Gras 2011-08-12 20:59:23 +00:00
parent ca5e8b2c2d
commit 58c4a9b5f4

View file

@ -21,7 +21,7 @@ CFLAGS += -D__kernel__
.if ${COMPILER_TYPE} == "ack"
LDFLAGS+= -.o
.elif ${COMPILER_TYPE} == "gnu"
CPPFLAGS+= -ffreestanding -fno-stack-protector -D_NETBSD_SOURCE
CPPFLAGS+= -fno-stack-protector -D_NETBSD_SOURCE
LDFLAGS+= -T ${.CURDIR}/arch/${ARCH}/kernel.lds
LDFLAGS+= -nostdlib -L${LIBDIR}
LDADD+= -lminlib