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: Re: Pretest compilation problem Date: Wed, 16 Feb 2011 14:11:37 -0500 Message-ID: <4y7hczeqvq.fsf@fencepost.gnu.org> 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 1297883513 20415 80.91.229.12 (16 Feb 2011 19:11:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Feb 2011 19:11:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 16 20:11:49 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 1Ppmmy-0003t4-EM for ged-emacs-devel@m.gmane.org; Wed, 16 Feb 2011 20:11:48 +0100 Original-Received: from localhost ([127.0.0.1]:52643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ppmmx-0003CB-Jw for ged-emacs-devel@m.gmane.org; Wed, 16 Feb 2011 14:11:47 -0500 Original-Received: from [140.186.70.92] (port=34390 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ppmmr-0003B8-0a for emacs-devel@gnu.org; Wed, 16 Feb 2011 14:11:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ppmmp-0000XH-Ot for emacs-devel@gnu.org; Wed, 16 Feb 2011 14:11:40 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:35777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ppmmp-0000XD-NL for emacs-devel@gnu.org; Wed, 16 Feb 2011 14:11:39 -0500 Original-Received: from localhost ([127.0.0.1]:56102) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ppmmo-0007P4-IH; Wed, 16 Feb 2011 14:11:38 -0500 X-Spook: Chobetsu CIA MIT-LL SCUD missile national information X-Ran: BTm=0?hhN{LY,NpW.q?;U<6t$#_dr{yw`$xNwloqSDP}=)O?k1`4Jgb.NJ[BD1L%q|t.3Z X-Hue: red X-Attribution: GM In-Reply-To: <878vxgjbyn.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 16 Feb 2011 09:22:40 -0500") 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:136113 Archived-At: Chong Yidong wrote: > Adding $(CFLAGS) sounds correct, ALL_CFLAGS used to be there in Emacs 23.1. It was removed in r1.461, 2009-12-16, by Andreas ("Don't compile prefix-args.c twice.") I'm sure he will be happy to provide a detailed explanation. http://cvs.savannah.gnu.org/viewvc/emacs/src/Makefile.in?root=emacs&r1=1.460&r2=1.461&pathrev=MAIN > except for a comment about this rule in Makefile.in, which I don't > understand: > > /* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE > often contain options that have to do with using Emacs''s crt0, > which are only good with temacs. */ IIRC, the Makefiles tried to make a distinction between flags that were only needed to link temacs (see the various TEMACS variables, eg LD_SWITCH_SYSTEM_TEMACS), and flags that were needed to compile separate things like prefix-args. It's quite possible that the comment is inaccurate or outdated though.