Subject: Re: optimising for sparc v8
To: None <port-sparc@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 05/18/2005 17:30:40
On Wed, May 18, 2005 at 09:08:32 -0400, Christopher Sean Hilton wrote:

> Just as an experiment I made a cross build environment for sparc on my
> Intel P4M notebook and it build the entire sparc system binaries in 70
> minutes but I cannot figure out how to control the CPUFLAGS in a cross
> compiling environment. Does anyone know how to do that?

.ifndef BSD_PKG_MK
#       src stuff

.if ${MACHINE} == "sparc"
CPUFLAGS=-mcpu=supersparc
.endif

.if ${MACHINE} == "netwinder"
CPUFLAGS=-march=armv4 -mtune=strongarm
.endif

# ...

.else   # BSD_PKG_MK
#       pkgsrc stuff

# ...

.endif  # BSD_PKG_MK



SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen