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:
parent
ca5e8b2c2d
commit
58c4a9b5f4
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ CFLAGS += -D__kernel__
|
||||||
.if ${COMPILER_TYPE} == "ack"
|
.if ${COMPILER_TYPE} == "ack"
|
||||||
LDFLAGS+= -.o
|
LDFLAGS+= -.o
|
||||||
.elif ${COMPILER_TYPE} == "gnu"
|
.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+= -T ${.CURDIR}/arch/${ARCH}/kernel.lds
|
||||||
LDFLAGS+= -nostdlib -L${LIBDIR}
|
LDFLAGS+= -nostdlib -L${LIBDIR}
|
||||||
LDADD+= -lminlib
|
LDADD+= -lminlib
|
||||||
|
|
Loading…
Reference in a new issue