Subject: Re: optimising for sparc v8
To: None <port-sparc@netbsd.org>
From: Rui Paulo <rpaulo@netbsd-pt.org>
List: port-sparc
Date: 05/18/2005 13:25:18
On 2005-05-18, Christopher Sean Hilton <chris@vindaloo.com> 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?

E.g.:
.if ${MACHINE_ARCH} == "i386"
CPUFLAGS=-march=pentium3 -msse -mmmx -mfpmath=sse
.elif ${MACHINE_ARCH} == "powerpc"
CPUFLAGS=-mcpu=604e
.elif ${MACHINE_ARCH} == "sparc"
CPUFLAGS=-mcpu=supersparc
.endif


-- 
Rui Paulo <rpaulo@netbsd-pt.org>