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 1QVQfu-0007fv-2y for garchives@archives.gentoo.org; Sat, 11 Jun 2011 16:04:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95BCD1C05E for ; Sat, 11 Jun 2011 16:04:36 +0000 (UTC) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 611451C023 for ; Sat, 11 Jun 2011 15:24:44 +0000 (UTC) Received: by fxm8 with SMTP id 8so2677112fxm.40 for ; Sat, 11 Jun 2011 08:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=HQYfw64rqi0g2F4pH94zfgC/bsk/As22NKe4ZHzmr1M=; b=Tbx/uNDtYAoe321NiiYCCPijiYa/SNDqrYyPloDobv5YZyM5AXGgyVn5Ijg/wJjdiw vH/O/UfejEOEeGuGaCB8doi+XzpfhHkNYMpc9t4n8FyQWqfp5MADVT9b3CTR15zeNigj xdKW5QBcrK7Wn3aG6jSDJOZGdK0Fel6PKIFHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=I0jNQwK3P+glkSy37dfKnjeoEMyat0JwyuteyfSpABsTwuVNPmVqu+YfX1yHrpbZnQ QwCRvVHuH5jRuDrJfRJrgrDsu04F04rm4Q1E2NxPBoJn9O+X4o+87CoEWb1dnpFdbeYX bPT9U/W70OrnA/H2oBUu3LbCf6RtI5HpTvm74= Received: by 10.223.143.67 with SMTP id t3mr3139369fau.105.1307805883158; Sat, 11 Jun 2011 08:24:43 -0700 (PDT) Received: from [10.0.0.10] ([88.151.74.225]) by mx.google.com with ESMTPS id b22sm1430294fak.1.2011.06.11.08.24.41 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 11 Jun 2011 08:24:41 -0700 (PDT) Message-ID: <4DF388FC.9010600@gmail.com> Date: Sat, 11 Jun 2011 17:25:48 +0200 From: Jarry User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 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 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] "universal" CFLAGS/CXXFLAGS/CHOST for 64bit (AMD64 & EMT64T)? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: abe810e6134d2a7e221b6c46d6fe70ca Hi, how should I change/set CFLAGS/CXXFLAGS/CHOST if I want to have system which can be easily migrated between AMD64 and Intel/Core without recompilation? I have a few virtual servers which I can not move from one arch to the other, as they have hw-specific CFLAGS (different host-server hardware, both AMD64 and EM64T): I have systems with Athlon64/X2 and Core2Quad, with settings: CFLAGS="-march=athlon64 -O2 -pipe" CFLAGS="-march=core2 -O2 -pipe" CHOST is always "x86_64-pc-linux-gnu". I'm not sure "-mtune=generic" is the right solution, because it would generate code for IA32/AMD64/EM64T (if I understand gcc manual correctly, for both 32bit as well as 64bit HW). What I'm looking for are some generic 64bit settings only for AMD64/EM64T (not 32bit/IA32) similar as for distros with binary distributions (i.e. I can download Ubuntu either 32bit or 64bit version, no other hardware-specific difference). I know with "universal" 64bit binaries I'm going to loose some pefrormance, but for me flexibility with migration would overweight this disadvantage... Jarry -- _______________________________________________________________ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.