Date: Mon, 19 Jan 2004 10:33:04 +0200 From: Ruslan Ermilov <ru@freebsd.org> To: Chris Knight <chris@e-easy.com.au> Cc: freebsd-current@freebsd.org Subject: Re: Release Building and /etc/make.conf Message-ID: <20040119083303.GF39956@FreeBSD.org.ua> In-Reply-To: <200401190738.i0J7ccF3020266@postoffice.e-easy.com.au> References: <200401190738.i0J7ccF3020266@postoffice.e-easy.com.au>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Mon, Jan 19, 2004 at 06:23:30PM +1100, Chris Knight wrote:
> Howdy,
>
> I'm just doing a release build of 5.2 and have noticed that
> from Stage 4.2 onwards, -mcpu=pentiumpro is added to the cc
> command line.
> The only place I can see this being set is in /etc/make.conf
> which is outside the sandbox.
> I was expecting the release build to be CPU agnostic, but
> this doesn't appear to be the case. Any way of overriding
> this without modifying /etc/make.conf?
>
There's a substantional difference between -mcpu and -march:
: -mcpu=cpu type
: Assume the defaults for the machine type CPU TYPE when schedul-
: ing instructions. The choices for CPU TYPE are: i386, i486,
: i586 (pentium), pentium, i686 (pentiumpro), and pentiumpro.
: While picking a specific CPU TYPE will schedule things appropri-
: ately for that particular chip, the compiler will not generate
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: any code that does not run on the i386 without the -march=cpu
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: type option being used.
:
: -march=cpu type
: Generate instructions for the machine type CPU TYPE. The choic-
: es for CPU TYPE are: i386, i486, pentium, and pentiumpro. Spec-
: ifying -march=cpu type implies -mcpu=cpu type.
Please also see the commit log for bsd.cpu.mk,v 1.13.
Cheers,
--
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAC5Y/Ukv4P6juNwoRAjFNAJ4y/BCcWKXipp4jDOGyhGymMRzkCACePgwZ
9hQ0CnOX1DkwiYh+lxt8Uyc=
=v8wz
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040119083303.GF39956>
