use -fno-delete-null-pointer-checks for kernels.
This commit is contained in:
parent
afc364f7fa
commit
fa27b654ce
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.kern.inc,v 1.262 2018/01/22 17:38:46 christos Exp $
|
||||
# $NetBSD: Makefile.kern.inc,v 1.263 2018/02/13 09:50:35 mrg Exp $
|
||||
#
|
||||
# This file contains common `MI' targets and definitions and it is included
|
||||
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
|
||||
|
@ -98,6 +98,7 @@ CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":? \
|
|||
CWARNFLAGS.ioconf.c= ${${ACTIVE_CC} == "clang":? -Wno-unused-const-variable :}
|
||||
|
||||
CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss
|
||||
CFLAGS+= -fno-delete-null-pointer-checks
|
||||
CFLAGS+= ${DEBUG} ${COPTS}
|
||||
AFLAGS+= -D_LOCORE -Wa,--fatal-warnings
|
||||
|
||||
|
|
Loading…
Reference in New Issue