From: Ian Jackson Subject: Re: [PATCH] tools/qemu-xen: remove CFLAGS for qemu build Date: Thu, 1 Mar 2012 17:42:00 +0000 Message-ID: <20303.46312.444472.874775@mariner.uk.xensource.com> References: <5bdbdcb03d60a7b58f41.1330015557@probook.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5bdbdcb03d60a7b58f41.1330015557@probook.site> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[Xen-devel] [PATCH] tools/qemu-xen: remove CFLAGS for qemu build"): > tools/qemu-xen: remove CFLAGS for qemu build > > Currently qemu-xen gets build with CFLAGS only if CFLAGS was already in > the environment during make invocation. If CFLAGS is in environment then > make will append all of the various flags specified in xen Makefiles, > which is then passed to qemu configure. If CFLAGS is not set, then > configure will use just "-O2 -g" because make does not export its own > CFLAGS variable. > > To make qemu-xen build consistent this change removes CFLAGS from the > environment so that only the CFLAGS from qemu configure script will be > used. This matches what is done in kvm.rpm and qemu.rpm where for > example RPM_OPT_FLAGS is not passes as CFLAGS. Otherwise those packages > would not build as well. I think it is a bug to try to invoke the Xen build system with CFLAGS set. So I don't think it's a good idea to try to fix it up. Ian.