Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2005 13:43:59 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Claus Guttesen <kometen@gmail.com>
Cc:        freebsd-amd64@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: /etc/make.conf flags for Intel
Message-ID:  <20051010174358.GA34176@xor.obsecurity.org>
In-Reply-To: <b41c75520510100046t17d1bd10m@mail.gmail.com>
References:  <BF6ED99E.2166%webmaster@machowto.com> <b41c75520510091438p11ac250am@mail.gmail.com> <20051010072456.GA52280@xor.obsecurity.org> <b41c75520510100046t17d1bd10m@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 10, 2005 at 09:46:49AM +0200, Claus Guttesen wrote:
> > > > Hey, how should I tune my /etc/make.conf file for my Intel Xeon (EM=
64) Box?
> > > > Running 6.0 B5
> > >
> > > march=3Dnocona
> > You misspelled 'CPUTYPE'
>=20
> My bad.
>=20
> > > Change CFLAGS line from -O to -O2.
> >
> > It *is* the default.
>=20
> /usr/share/examples/etc/make.conf is set to -O.

The setting in <sys.mk> trumps this documentation file, but you're
right, this should be updated there.  Could you please send a PR?

> Copy /usr/share/examples/etc/make.conf to /etc if make.conf is
> missing/empty and make the changes below.
>=20
> CPUTYPE=3Dnocona
> CFLAGS=3D -O2 -pipe
> COPTFLAGS=3D -O2 -pipe

COPTFLAGS=3D-O2 is a bad idea if your kernel panics and you need
assistance, because it often munges the debugging backtraces to the
point of uselessness.

Kris

--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDSqheWry0BWjoQKURAgbDAKCKisRTub6McMz61cHFbR+a35JgpwCgvGuW
6aBbF3SjRjYnz4jcYQjASWU=
=ikak
-----END PGP SIGNATURE-----

--vkogqOf2sHV7VnPd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051010174358.GA34176>