From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem] Date: Wed, 16 Feb 2011 22:16:16 -0500 Message-ID: References: <878vxgjbyn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297912596 756 80.91.229.12 (17 Feb 2011 03:16:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 03:16:36 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 17 04:16: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 1PpuLv-0006Fk-PZ for ged-emacs-devel@m.gmane.org; Thu, 17 Feb 2011 04:16:23 +0100 Original-Received: from localhost ([127.0.0.1]:56583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpuLv-0004J4-7y for ged-emacs-devel@m.gmane.org; Wed, 16 Feb 2011 22:16:23 -0500 Original-Received: from [140.186.70.92] (port=60864 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpuLq-0004Io-5B for emacs-devel@gnu.org; Wed, 16 Feb 2011 22:16:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpuLp-0001Ct-3J for emacs-devel@gnu.org; Wed, 16 Feb 2011 22:16:18 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:43681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpuLo-0001Co-Tb for emacs-devel@gnu.org; Wed, 16 Feb 2011 22:16:17 -0500 Original-Received: from localhost ([127.0.0.1]:58613) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpuLo-0006m3-IY; Wed, 16 Feb 2011 22:16:16 -0500 X-Spook: Leitrim offensive information warfare Bellcore halcon X-Ran: $T?!Po:E)#}QuDaNeeY]bmmK8&#.jZT2-A^qM?r29Bm4"&wp0k11>y:=Cm/ioe(li&8Yee X-Hue: magenta X-Attribution: GM In-Reply-To: (Andreas Schwab's message of "Wed, 16 Feb 2011 16:32:48 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:136125 Archived-At: Andreas Schwab wrote: > You really should put -m32 into CC, since it is a different compiler. I've seen this advertized elsewhere, and it's off-topic for Emacs, but can you explain this to me? Eg `info make' says: `CC' Program for compiling C programs; default `cc'. "gcc -m32" is not a program. It is a program plus some switches. I believe you if you say that switch causes an entirely different compiler to be invoked behind the scenes, but I don't buy that as a justification for why -m32 should go there and not in CFLAGS. It just seems like an excuse to get round the fact that some Makefiles don't pass CFLAGS during the linking stage... `info make' also says: `CFLAGS' Extra flags to give to the C compiler. Not "flags passed to the compiler if it is being invoked as a compiler, not a linker". Just "flags passed to the C compiler", full-stop.