From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1M9cg8-0003IQ-CD for garchives@archives.gentoo.org; Thu, 28 May 2009 10:17:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 521E4E03BE; Thu, 28 May 2009 10:17:39 +0000 (UTC) Received: from mail-bw0-f175.google.com (mail-bw0-f175.google.com [209.85.218.175]) by pigeon.gentoo.org (Postfix) with ESMTP id 0B14BE03CD for ; Thu, 28 May 2009 10:17:38 +0000 (UTC) Received: by bwz23 with SMTP id 23so4741444bwz.34 for ; Thu, 28 May 2009 03:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=szig9BqkBXzrvcdc1Gj8KRKvezsEq8wt7BSMkDs3zc8=; b=JYehD5t/8ud3IAayRyfsx6xnRbIw/LxzUrrntCwIZaqbahbKN+0N27UuUW9mivYEEE LIIl2ProhTmqKKkj/G/Ya2ANDPgLh7jZscghwPWL/fpvqCV0MB1Wo1KpuuHhxHftH3nu LMBMSNdHERkEl4LBAdSiJFtFM9GJvq0wL3t+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Rm0sygxfGsMTE24gXzYuovzR3/4tsVKq3DZOHHbJUERrxI3y9incXm16gxo0iPYQFE Qd8ZfDkXvp/kShhnukjbSIG5WcLYyyusw0EktfIvsKQ79ndRkMcBdC1wRicgafEy+jkP 40p/+6qFsHtSZWIJ4UevELzApBFxV9xw/WD+A= Received: by 10.103.249.19 with SMTP id b19mr714770mus.86.1243505858284; Thu, 28 May 2009 03:17:38 -0700 (PDT) Received: from ilievnet.com ([84.21.204.200]) by mx.google.com with ESMTPS id e9sm4693683muf.32.2009.05.28.03.17.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 May 2009 03:17:37 -0700 (PDT) Date: Thu, 28 May 2009 13:17:35 +0300 From: Daniel Iliev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] USE="mmx mmxext sse sse2 ssse3 3dnow 3dnowext" Message-ID: <20090528131735.10e3b3ce@ilievnet.com> In-Reply-To: References: <4E38BD16-0410-4A31-839C-290364A8D735@stellar.eclipse.co.uk> <200905260637.49384.volkerarmin@googlemail.com> <195F8064-21ED-4FBB-8C2D-78F45FBAF59A@stellar.eclipse.co.uk> <20090526173123.6af2881a@ilievnet.com> <51F59246-9E2D-42D1-9AC6-BB5E41BDAAF3@stellar.eclipse.co.uk> <20090527034704.49154a6f@ilievnet.com> <208DD9E9-EDD3-4E85-A8DE-6B08B08EDCEA@stellar.eclipse.co.uk> <20090527130041.214f5aa9@ilievnet.com> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.14.7; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 404d24e7-8a3b-4ed6-86bf-3bf96c002f00 X-Archives-Hash: a05df06155736496d76696a0b834dd61 On Thu, 28 May 2009 00:23:52 +0300 "Arttu V." wrote: > On 5/27/09, Wyatt Epp wrote: > > Reading this thread, though, it seems like it would be useful to > > have a FEATURES=cpudetection for Portage. > > Congratulations, it's already there! Sort of. -march=native ;) > Not the same thing. "-march=" instructs gcc to produce a binary designed to run only on the given CPU architecture, while USE flags instruct the build system to include or not support for a given feature. Think of the USE flags "this" and "that" as shortcuts to "./configure --enable-this --disable-that". So, for example mplayer could be a binary which can take advantage (or not) of SSSE3 and is designed to run only (or not) on core2. P.S. And what's next - feature like: FEATURES="do_the_best_system_ever" where "do_the_best_system_ever" is a shorthand for: detect_best_cflags detect_best_cxxflags detect_best_ldflags detect_best_uselags Sounds good and it's not against Gentoo philosophy - the end user has the choice to use this feature or not. Any volunteers for the implementation? Oh, wait! Somebody define "best", please! :) -- Best regards, Daniel