mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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'.
This commit is contained in:
parent
8798701fd5
commit
26a42e7c88
1 changed files with 1 additions and 1 deletions
|
|
@ -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".
|
||||
|
|
|
|||
Loading…
Reference in a new issue