From: John Levon Subject: Re: [PATCH] Introduce Makefile config fragments for OS-specific differences. Date: Tue, 17 Oct 2006 16:22:43 +0100 Message-ID: <20061017152243.GB11816@totally.trollied.org> References: <20061017124257.GB4626@totally.trollied.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Oct 17, 2006 at 04:09:22PM +0100, Keir Fraser 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? Yes, it's a fundamental principle that all the software we deliver can produce meaningful stack traces. > 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. This is specifically to make sure that KERNELS is empty on Solaris. Otherwise, we have to add some $(XEN_OS) gook to $(XEN_ROOT)/Makefile. Hopefully these are going away soonish anyway ;) regards john