]> Zhao Yanbai Git Server - minix.git/commitdiff
kernel: don't use -ffreestanding
authorBen Gras <ben@minix3.org>
Fri, 12 Aug 2011 20:59:23 +0000 (20:59 +0000)
committerBen Gras <ben@minix3.org>
Sat, 13 Aug 2011 11:04:37 +0000 (11:04 +0000)
. 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

kernel/Makefile

index d67c683e6b6819f196b437978f0783d73b8520ac..1b760c86ed2fb48abaa5c4bce21a981e2b2e0501 100644 (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