From owner-freebsd-arch Wed Feb 21 12:38:39 2001 Delivered-To: freebsd-arch@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-165-226-53.dsl.lsan03.pacbell.net [64.165.226.53]) by hub.freebsd.org (Postfix) with ESMTP id 72ACE37B401 for ; Wed, 21 Feb 2001 12:38:36 -0800 (PST) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 83A7366F2E; Wed, 21 Feb 2001 12:38:35 -0800 (PST) Date: Wed, 21 Feb 2001 12:38:35 -0800 From: Kris Kennaway To: mi@aldan.algebra.com Cc: arch@freebsd.org Subject: Re: cvs commit: src/share/mk sys.mk Message-ID: <20010221123835.A59024@mollari.cthul.hu> References: <200102211827.f1LIRuv32516@misha.privatelabs.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102211827.f1LIRuv32516@misha.privatelabs.com>; from mi@aldan.algebra.com on Wed, Feb 21, 2001 at 01:27:54PM -0500 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 21, 2001 at 01:27:54PM -0500, mi@aldan.algebra.com wrote: > BTW, may be -mcpu=${MACHINE_CPU} can be added to the default CFLAGS now? > And a comment, that changing -mcpu to -march will, probably, be even > better, but will prevent the binaries from being usable on earlier CPUs. Well, MACHINE_CPU is a list, not a word. And gcc doesn't support optimizations for all of the values we will be supporting (e.g. a lot of ports contain things like 3DNOW! asm code, etc). You could however imagine playing games with things like: .if ${MACHINE_CPU:Mi686} CFLAGS += -mpentiumpro .elif ${MACHINE_CPU:Mi586} CFLAGS += -mpentium ... .endif which may be worthwhile to do. The -march statement doesnt matter though, since some binaries built with MACHINE_CPU set will already be CPU-specific (e.g. if you specify i686 then openssl will use the i686 blowfish code) Kris P.S. Trying yet again to move this thread onto -arch where it belongs. --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6lCdKWry0BWjoQKURAgdNAJ4oYRTIFiythJ2QUVgeFR4ObXQmlwCg5Wgy iVxKii+jHJeYEECCRtDWWZo= =8pXR -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message