diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index a0e34bc06e2..9202d669159 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -1,10 +1,7 @@ -# kern.pre.mk -# -# Unified Makefile for building kernels. This includes all the definitions -# that need to be included before %BEFORE_DEPEND -# # $FreeBSD$ -# + +# Part of a unified Makefile for building kernels. This part contains all +# of the definitions that need to be before %BEFORE_DEPEND. # Can be overridden by makeoptions or /etc/make.conf KERNEL_KO?= kernel @@ -39,7 +36,9 @@ INCLUDES+= -I$S/contrib/dev/ath -I$S/contrib/dev/ath/freebsd INCLUDES+= -I$S/contrib/ngatm COPTS= ${INCLUDES} -D_KERNEL -include opt_global.h -CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} -fno-common +CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} +CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} -fno-strict-aliasing +WERROR?= -Werror # XXX LOCORE means "don't declare C stuff" not "for locore.s". ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} @@ -55,9 +54,6 @@ PROF= -pg .endif .endif DEFINED_PROF= ${PROF} -WERROR?= -Werror -CFLAGS+= -finline-limit=${INLINE_LIMIT} -fno-strict-aliasing - # Put configuration-specific C flags last (except for ${PROF}) so that they # can override the others.