Unbreak building vkernel by not linking against -lthread_xu.
[dragonfly.git] / sys / platform / vkernel / conf / kern.mk
blobfebcd20915fabb2e4416c3980957ca28e0774c89
1 # $DragonFly: src/sys/platform/vkernel/conf/kern.mk,v 1.3 2007/01/06 08:57:30 dillon Exp $
3 # On the i386, do not align the stack to 16-byte boundaries. Otherwise GCC
4 # adds code to the entry and exit point of every function to align the
5 # stack to 16-byte boundaries -- thus wasting approximately 12 bytes of stack
6 # per function call. While the 16-byte alignment may benefit micro benchmarks,
7 # it is probably an overall loss as it makes the code bigger (less efficient
8 # use of code cache tag lines) and uses more stack (less efficient use of data
9 # cache tag lines)
11 # Prohibit the use of FP registers in the kernel. The user FP state is
12 # only saved and restored under strictly managed conditions and mainline
13 # kernel code cannot safely use the FP system.
15 CFLAGS+= -mpreferred-stack-boundary=2
16 CFLAGS+= -fno-stack-protector
17 CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
18 CFLAGS+= -D_KERNEL_VIRTUAL
20 # Remove the dynamic library hack for now
22 SYSTEM_OBJS:= ${SYSTEM_OBJS:Nhack.So}
24 INLINE_LIMIT= 8000