From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FyVw0-0006QE-J7 for garchives@archives.gentoo.org; Thu, 06 Jul 2006 15:38:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k66Faxvb008163; Thu, 6 Jul 2006 15:36:59 GMT Received: from mail01.emarketsouth.com (mail01.emarketsouth.com [208.247.233.6]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k66FX6jm000626 for ; Thu, 6 Jul 2006 15:33:07 GMT Received: (qmail 3010 invoked by uid 399); 6 Jul 2006 15:37:13 -0000 Received: from unknown (HELO onyx) (64.192.54.4) by mail01.emarketsouth.com with SMTP; 6 Jul 2006 15:37:13 -0000 Subject: Re: [gentoo-dev] Replacing cpu-feature USE flags From: Ned Ludd To: gentoo-dev@lists.gentoo.org In-Reply-To: <20060706131905.3ba12b49@snowdrop.home> References: <200607061252.33028@enterprise.flameeyes.is-a-geek.org> <20060706131905.3ba12b49@snowdrop.home> Content-Type: text/plain; charset=ISO-8859-1 Organization: Gentoo Linux Date: Thu, 06 Jul 2006 11:33:03 -0400 Message-Id: <1152199984.13640.28.camel@onyx> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k66FaxxR008163 X-Archives-Salt: cf9818f9-98d2-4a49-a682-c5fc55ee9e06 X-Archives-Hash: af4c9bb7a4095f620f6c6030c0533d95 On Thu, 2006-07-06 at 13:19 +0100, Ciaran McCreesh wrote: > On Thu, 6 Jul 2006 12:52:29 +0200 "Diego 'Flameeyes' Petten=F2" > wrote: > | Right now we have mmx, 3dnow, 3dnowex, sse, sse2 and so on useflags > | present in the tree, almost never used to get new dependencies, but > | usually used to supply econf switches. > |=20 > | This works as long as the user enable the flags, but for AMD64 the > | story was, until now, that we simply enabled them when they worked, > | because we had some minimum support available. Unfortunately this > | became a problem with the introduction of nocona, because that is an > | amd64-like system but with no 3dnow. And there is the problem that > | sse3 is supported only in later versions of Athlon64 and so on. >=20 > The other option here... Is to rename the x86 flags to x86_mmx, > x86_3dnow etc, and use amd64_sse3 for amd64 flags, since they're not > really the same as the x86 flags. >=20 > There's probably some USE_EXPAND trickery that can be used here... > CPU_FEATURE_X86=3D"mmx sse" -> cpu_feature_x86_mmx etc might be cleaner= ? I tend to agree this might be a cleaner approach vs having to edit & redit CFLAGS all over the place. --=20 Ned Ludd Gentoo Linux --=20 gentoo-dev@gentoo.org mailing list