Subject: Re: continuing sh problems
To: None <port-sparc@NetBSD.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 05/14/2005 01:27:17
On Fri, May 13, 2005 at 22:55:29 +0200, Martin Husemann wrote:
> On Fri, May 13, 2005 at 02:34:24PM -0600, Rick Kelly wrote:
>
> > Will "COPTS+=-mv8 -mtune=supersparc" work correctly in mk.conf
> > when building the kernel? It used to remove the "-O2"
> > optimisation, resulting in a huge kernel.
>
> I don't realy know - I use
>
> CFLAGS+= -mv8 -mtune=supersparc
>
> in /etc/mk.conf and have
>
> makeoptions COPTS="-mcpu=supersparc -O2"
>
> in my kernel config, oops - will replace that with -mv8
> -mtune=supersparc too.
1) Why not just -mcpu=supersparc. -mv8 is deprecated in favor of
-mcpu= syntax anyway.
2) We have CPUFLAGS make variable for -mcpu= and its ilk. Potential
bonus of using it is that it's applied to assembler files as well
(unlike CFLAGS &co). I think at least some ports (arm most likely)
already use that option to provide customized asm stuff.
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen