Subject: Re: how to set optimize options for build netbsd ?
To: None <netbsd-users@netbsd.org>
From: Denis Lagno <dlagno@rambler.ru>
List: netbsd-users
Date: 12/09/2005 01:08:22
On Thu, Dec 08, 2005 at 04:26:18PM +0800, Dongsheng Song scribed:
> I build netbsd-3 using this command,
> 
> ./src/build.sh \
> -m i386 -U -u -x \
> -X xsrc \
> -M /tmp/netbsd-3-branch/i386/obj \
> -T /tmp/netbsd-3-branch/i386/tools \
> -D /tmp/netbsd-3-branch/i386/dest \
> -R /tmp/netbsd-3-branch/i386/200512.rel \
> release
> 
> Can I set some optimize options for build netbsd ?

also you can add command line argument to build.sh like that:

-V CPUFLAGS=-march=pentium3 -V COPTS="-O3 -funroll-loops -mfpmath=sse -msse -fno-strict-aliasing" \

and a line to kernel config like that:

makeoptions     COPTS="-O3 -march=pentium3 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing"

-denis