Move -mcmodel=kernel CFLAGS from bsd.klinks.mk to amd64/include/Makefile.inc

to avoid having the kernel toolchain flags split over a billion different
files.
This commit is contained in:
pooka 2009-11-27 13:50:29 +00:00
parent ebb48144a9
commit 972900e4ca
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.klinks.mk,v 1.5 2009/03/15 05:57:54 tsutsui Exp $
# $NetBSD: bsd.klinks.mk,v 1.6 2009/11/27 13:50:29 pooka Exp $
#
.include <bsd.own.mk>
@ -23,9 +23,6 @@ CLEANFILES+= sparc
CLEANFILES+= x86
.elif ${MACHINE} == "amd64"
CLEANFILES+= x86
.if !defined(RUMPKERNEL)
CFLAGS+= -mcmodel=kernel
.endif
.endif
.if defined(XEN_BUILD) || ${MACHINE} == "xen"

View File

@ -1,4 +1,10 @@
# $NetBSD: Makefile.inc,v 1.2 2009/11/25 17:08:08 tron Exp $
# $NetBSD: Makefile.inc,v 1.3 2009/11/27 13:50:29 pooka Exp $
CFLAGS+= -mno-red-zone
# this should really be !(RUMPKERNEL && PIC)
.if !defined(RUMPKERNEL)
CFLAGS+= -mcmodel=kernel
.endif
USE_SSP?= yes