xref: /dragonfly/sys/platform/vkernel64/conf/kern.mk (revision 56f51086)
1#
2# Prohibit the use of FP registers in the kernel.  The user FP state is
3# only saved and restored under strictly managed conditions and mainline
4# kernel code cannot safely use the FP system.
5#
6.if ${CCVER:Mgcc*}
7CFLAGS+=	-mpreferred-stack-boundary=4
8.endif
9CFLAGS+=	-fno-stack-protector -fno-strict-aliasing
10CFLAGS+=	-fno-strict-overflow
11CFLAGS+=	-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
12CFLAGS+=	-D_KERNEL_VIRTUAL
13CFLAGS+=	-fno-omit-frame-pointer
14
15# Remove the dynamic library hack for now
16#
17SYSTEM_OBJS:= ${SYSTEM_OBJS:Nhack.So}
18
19INLINE_LIMIT=	8000
20