Subject: Re: how to set optimize options for build netbsd ?
To: None <netbsd-users@netbsd.org>
From: haad <haaaad@gmail.com>
List: netbsd-users
Date: 12/08/2005 22:05:38
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dongsheng Song wrote:
> 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 ?
> 
> Thanks for some help
> 
> 

Hello

You can set some optimie options to /etc/mk.conf
I have tjis in my /etc/mk.conf

#for optimizing pkgsrc packages
.ifdef BSD_PKG_MK
COPTS=-O2 -pipe -march=pentium4
OBJHOSTNAME=i686
PKGSRC_LOCKTYPE=once
ACCEPTABLE_LICENSES+=inlineegg-license
ACCEPTABLE_LICENSES+=lame-license
ACCEPTABLE_LICENSES+=skype-license

#for optimizing other sources
.else
COPTS=-O2 -pipe -march=pentium4
MKKERBEROS=no
MKBIND=no
MKKERBEROS4=no
MKSENDMAIL=no
MKMANZ=yes
MKYP=no
MKUUCP=no
.endif

for more information you can look to man mk.conf:)

Bye Adam Hamsik

- --

There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
				
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDmKAh9Wt2FT7y228RAteWAJ4iwcT/KRTN/c78VRyoRcG7eTHrFwCfQajo
0ruzKPvkV7oHuR0hGjjhhbQ=
=aJaU
-----END PGP SIGNATURE-----