From owner-freebsd-current@FreeBSD.ORG Mon Jan 19 00:33:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE83216A4CE for ; Mon, 19 Jan 2004 00:33:23 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96DF643D3F for ; Mon, 19 Jan 2004 00:33:19 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i0J8X8jm040615; Mon, 19 Jan 2004 10:33:09 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i0J8X5d3040606; Mon, 19 Jan 2004 10:33:05 +0200 (EET) (envelope-from ru) Date: Mon, 19 Jan 2004 10:33:04 +0200 From: Ruslan Ermilov To: Chris Knight Message-ID: <20040119083303.GF39956@FreeBSD.org.ua> References: <200401190738.i0J7ccF3020266@postoffice.e-easy.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B0nZA57HJSoPbsHY" Content-Disposition: inline In-Reply-To: <200401190738.i0J7ccF3020266@postoffice.e-easy.com.au> User-Agent: Mutt/1.5.5.1i cc: freebsd-current@freebsd.org Subject: Re: Release Building and /etc/make.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2004 08:33:23 -0000 --B0nZA57HJSoPbsHY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 19, 2004 at 06:23:30PM +1100, Chris Knight wrote: > Howdy, >=20 > I'm just doing a release build of 5.2 and have noticed that > from Stage 4.2 onwards, -mcpu=3Dpentiumpro 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? >=20 There's a substantional difference between -mcpu and -march: : -mcpu=3Dcpu 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=3Dcpu ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : type option being used. :=20 : -march=3Dcpu type : Generate instructions for the machine type CPU TYPE. The choic- : es for CPU TYPE are: i386, i486, pentium, and pentiumpro. Spec- : ifying -march=3Dcpu type implies -mcpu=3Dcpu type. Please also see the commit log for bsd.cpu.mk,v 1.13. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --B0nZA57HJSoPbsHY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAC5Y/Ukv4P6juNwoRAjFNAJ4y/BCcWKXipp4jDOGyhGymMRzkCACePgwZ 9hQ0CnOX1DkwiYh+lxt8Uyc= =v8wz -----END PGP SIGNATURE----- --B0nZA57HJSoPbsHY--