From: Ben Gras Date: Fri, 12 Aug 2011 20:59:23 +0000 (+0000) Subject: kernel: don't use -ffreestanding X-Git-Tag: v3.2.0~369 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/gitweb.css?a=commitdiff_plain;h=58c4a9b5f49bef6743846b4b402f43862353f2bf;p=minix.git 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 --- diff --git a/kernel/Makefile b/kernel/Makefile index d67c683e6..1b760c86e 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -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