From: Keir Fraser Subject: Re: [PATCH] xen/Rules.mk: Do not dance about pointlessly with CFLAGS_tmp Date: Mon, 12 Jan 2009 18:55:48 +0000 Message-ID: References: <18795.30817.519941.296298@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18795.30817.519941.296298@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/01/2009 17:05, "Ian Jackson" wrote: > It is usually better to use `=' in Makefiles than `:='. The expansion > rules for `:=' are simpler - so simple in fact that they don't work if > any part of the expansion depends on the source or target filenames. > > In this patch we remove the shuffling of the value of CFLAGS between > := and = flavour variables. This was previously `necessary' because > otherwise it would run the seddery for removing -fomit-frame-pointer > once for each rule. > > However this seddery is not actually necessary because there is plenty > of other machinery for (a) only setting -fomit-frame-frame-pointer > when applicable AND (b) passing -fno-omit-frame-pointer later on the > command line if it's not applicable. So we already have belt and > braces and can remove the safety pins. You missed a := in arch/x86/Rules.mk. Can that one be avoided so easily? -- Keir