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 1FyTfX-0003E1-HT for garchives@archives.gentoo.org; Thu, 06 Jul 2006 13:13:24 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k66DCKTs030765; Thu, 6 Jul 2006 13:12:20 GMT Received: from MIUMMR0MT05.um.ced.h3g.it ([62.13.171.111]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k66D9ju3010833 for ; Thu, 6 Jul 2006 13:09:46 GMT Received: from c1358217.kevquinn.com (miumgu0vp03.um.ced.h3g.it [10.216.57.163]) by MIUMMR0MT05.um.ced.h3g.it (MOS 3.5.5-GR) with ESMTP id APF25438; Thu, 6 Jul 2006 15:08:02 +0200 (CEST) Date: Thu, 6 Jul 2006 15:17:26 +0200 From: "Kevin F. Quinn" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Replacing cpu-feature USE flags Message-ID: <20060706151726.56afeebb@c1358217.kevquinn.com> In-Reply-To: <200607061444.23014@enterprise.flameeyes.is-a-geek.org> References: <200607061252.33028@enterprise.flameeyes.is-a-geek.org> <20060706143531.1d970d80@c1358217.kevquinn.com> <200607061444.23014@enterprise.flameeyes.is-a-geek.org> X-Mailer: Sylpheed-Claws 2.3.0 (GTK+ 2.8.12; i686-pc-linux-gnu) 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 Content-Type: multipart/signed; boundary=Sig_+Oh26JlF1KQjGhNUNTFqQwb; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 2211f06e-1598-48b1-b1a7-18b84db648d4 X-Archives-Hash: 0a7425e7946a54c85e85361ae7a63131 --Sig_+Oh26JlF1KQjGhNUNTFqQwb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, 6 Jul 2006 14:44:22 +0200 "Diego 'Flameeyes' Petten=F2" wrote: > On Thursday 06 July 2006 14:35, Kevin F. Quinn wrote: > > This could easily be done by configure > > scripts; perhaps it would be a good idea to look into writing some > > autoconf macros. > Actually there's little need, you can simply use the #ifdef in the > code, unless you have separated source files for MMX, SSE and so on > (that might as well be), but even then, it's really trivial to > autoconf. Yep; I've seen that several packages do it the #ifdef way, which is ideal as we don't need to do set any configure stuff at all then (I guess those packages don't have configure options/use flags to select between mmx, sse etc anyway). > The problem is that many autoconf scripts do it the other way around, > by forcing -march or -mcpu (that is deprecated by -mtune too) deduced=20 > from /proc/cpuinfo. Ooh; that's nasty. Let me guess - mplayer ... yeah; what a surprise. Presumably we disable such trickery if we see it, as it makes the target code depend on the build system which is obviously wrong - at least for Gentoo. --=20 Kevin F. Quinn --Sig_+Oh26JlF1KQjGhNUNTFqQwb Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iD8DBQFErQ1r9G2S8dekcG0RAhsyAKCPhklswV8jT/yYkqcpPNN/mpCQcACgz5s/ CbhsKOY+7rZBFxNbWKpzVhQ= =L519 -----END PGP SIGNATURE----- --Sig_+Oh26JlF1KQjGhNUNTFqQwb-- -- gentoo-dev@gentoo.org mailing list