summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-12-06 17:53:32 +0000
committerobrien <obrien@FreeBSD.org>2001-12-06 17:53:32 +0000
commit6084b5393d9a33e365e1a70737b652d2304b3b95 (patch)
tree93659b6ff6d11f374f3ed0fc74bd29762bdfa36e /sys
parent125cbff8786f534c1e8abb272938cd72c797310b (diff)
downloadFreeBSD-src-6084b5393d9a33e365e1a70737b652d2304b3b95.zip
FreeBSD-src-6084b5393d9a33e365e1a70737b652d2304b3b95.tar.gz
Compile all kernels with "-ffreestanding":
Assert that compilation takes place in a freestanding environment. This implies `-fno-builtin'. A freestanding environment is one in which the standard library may not exist, and program startup may not necessarily be at main. The most obvious example is an OS kernel. This is equivalent to `-fno-hosted'.
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kern.pre.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 17f08b2..32a675b 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -37,7 +37,7 @@ INCLUDES+= -I$S/../include
INCLUDES+= -I/usr/include
.endif
-COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -include opt_global.h
+COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -ffreestanding -include opt_global.h
CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS}
# XXX LOCORE means "don't declare C stuff" not "for locore.s".
OpenPOWER on IntegriCloud