Subject: CPUFLAGS not used when assembling
To: None <tech-toolchain@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-toolchain
Date: 10/18/2004 13:33:36
Currently, the CPUFLAGS make variable is only used for userland .c files,
but ignored for .S files.  It is used for both in the kernel.

The following patch fixes it for me.  Is this the right place to make
the change?

Simon.
--
Simon Burge                                   <simonb@wasabisystems.com>
NetBSD Development, Support and Service:   http://www.wasabisystems.com/

Index: bsd.sys.mk
===================================================================
RCS file: /cvsroot/src/share/mk/bsd.sys.mk,v
retrieving revision 1.113
diff -d -p -u -r1.113 bsd.sys.mk
--- bsd.sys.mk	8 Jun 2004 21:46:52 -0000	1.113
+++ bsd.sys.mk	18 Oct 2004 03:27:04 -0000
@@ -55,6 +55,7 @@ CFLAGS+=	-Wa,-Av8plus
 .endif
 
 CFLAGS+=	${CPUFLAGS}
+AFLAGS+=	${CPUFLAGS}
 
 # Helpers for cross-compiling
 HOST_CC?=	cc