From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem] Date: Thu, 17 Feb 2011 09:28:14 -0800 Organization: UCLA Computer Science Department Message-ID: <4D5D5AAE.2000206@cs.ucla.edu> References: <878vxgjbyn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297963717 29724 80.91.229.12 (17 Feb 2011 17:28:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 17:28:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 17 18:28:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pq7eZ-0003jW-76 for ged-emacs-devel@m.gmane.org; Thu, 17 Feb 2011 18:28:31 +0100 Original-Received: from localhost ([127.0.0.1]:56116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq7eY-0002Nc-Hq for ged-emacs-devel@m.gmane.org; Thu, 17 Feb 2011 12:28:30 -0500 Original-Received: from [140.186.70.92] (port=46200 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq7eP-0002Lz-Px for emacs-devel@gnu.org; Thu, 17 Feb 2011 12:28:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq7eN-0005Jb-J5 for emacs-devel@gnu.org; Thu, 17 Feb 2011 12:28:21 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:37303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq7eN-0005J1-4n; Thu, 17 Feb 2011 12:28:19 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 786BE39E80F7; Thu, 17 Feb 2011 09:28:15 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PZo4MKLoif5c; Thu, 17 Feb 2011 09:28:15 -0800 (PST) Original-Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1D7CA39E8083; Thu, 17 Feb 2011 09:28:15 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136136 Archived-At: On 02/16/2011 07:16 PM, Glenn Morris wrote: > I've seen this advertized elsewhere, and it's off-topic for Emacs, but > can you explain this to me? It's to cater to a common usage, where one does "configure CC='cc -m32'; [edit]; make CFLAGS=-g". "configure" may decide to use "-g -O2", but you may find it easier to compile with plain -g than with -g -O2, because it's easier to debug code that isn't optimized. If instead you use "configure CC=cc CFLAGS=-m32", it's more of a pain: "configure" won't set all the CFLAGS for you, and when you run "make" yourself you need to say "make CFLAGS='-m32 -g'".