From: Keir Fraser Subject: Re: [PATCH] Introduce Makefile config fragments for OS-specific differences. Date: Tue, 17 Oct 2006 16:09:22 +0100 Message-ID: References: <20061017124257.GB4626@totally.trollied.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061017124257.GB4626@totally.trollied.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 17/10/06 13:42, "John Levon" wrote: > -ifneq ($(debug),y) > -# Optimisation flags are overridable > -CFLAGS ?= -O2 -fomit-frame-pointer > -CFLAGS += -DNDEBUG > -else > -# Less than -O1 produces bad code and large stack frames > -CFLAGS ?= -O1 -fno-omit-frame-pointer > -CFLAGS += -g > -endif Generally this patch is fine, but does the above chunk have to be made OS-specific? Does Solaris specifically have something against -fomit-frame-pointer? Also, moving KERNEL_REPO/KERNELS/XKERNELS seems unnecessary. There are still rules consuming those variables in the root Makefile, so leaving KERNELS/XKERNELS nearby makes sense to me. -- Keir