Make rump compile things with -std=gnu99 like the kernel and modules.
This commit is contained in:
parent
e7c5804ca9
commit
12a3861acb
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.rump,v 1.60 2011/02/01 01:15:51 matt Exp $
|
||||
# $NetBSD: Makefile.rump,v 1.61 2011/05/10 00:33:58 matt Exp $
|
||||
#
|
||||
|
||||
WARNS?= 3 # XXX: src/sys won't compile with -Wsign-compare yet
|
||||
@ -16,6 +16,11 @@ CPPFLAGS+= -D_RUMP_NATIVE_ABI
|
||||
.endif
|
||||
|
||||
CFLAGS+= -ffreestanding -fno-strict-aliasing
|
||||
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 3
|
||||
CFLAGS+= -Wsign-compare
|
||||
CFLAGS+= -Wno-pointer-sign -Wno-attributes
|
||||
CFLAGS+= -std=gnu99
|
||||
.endif
|
||||
CWARNFLAGS+= -Wno-format-zero-length -Wno-pointer-sign
|
||||
CPPFLAGS+= -D_KERNEL -DMULTIPROCESSOR -D_MODULE -DMODULAR
|
||||
CPPFLAGS+= -DMAXUSERS=32
|
||||
|
Loading…
Reference in New Issue
Block a user