From b38db8f922e001ed8bc9ee6e5d8d64cd953afdca Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 12 Mar 2001 07:47:09 +0000 Subject: Use CPUTYPE to add appropriate compiler flags to COPTFLAGS for kernel builds. This may be disabled using the NO_CPU_COPTFLAGS variable. Reviewed by: arch --- sys/conf/Makefile.alpha | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/conf/Makefile.alpha') diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha index 5a9a326..26a4704 100644 --- a/sys/conf/Makefile.alpha +++ b/sys/conf/Makefile.alpha @@ -37,7 +37,10 @@ M= ${MACHINE_ARCH} SIZE?= size OBJCOPY?= objcopy -COPTFLAGS?=-O +COPTFLAGS?=-O -pipe +.if !defined(NO_CPU_COPTFLAGS) +COPTFLAGS+= ${_CPUCFLAGS} +.endif INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S -I$S/dev # This hack is to allow kernel compiles to succeed on machines w/out srcdist .if exists($S/../include) -- cgit v1.1