From: Ian Jackson Subject: Re: [PATCH] tools/qemu-xen: remove CFLAGS for qemu build Date: Wed, 14 Mar 2012 12:04:20 +0000 Message-ID: <20320.35140.322219.894996@mariner.uk.xensource.com> References: <5bdbdcb03d60a7b58f41.1330015557@probook.site> <20303.46312.444472.874775@mariner.uk.xensource.com> <20120301175325.GA8395@aepfle.de> <20303.48626.173624.191033@mariner.uk.xensource.com> <20120302115125.GA15758@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120302115125.GA15758@aepfle.de> 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: Roger Pau Monne , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("Re: [Xen-devel] [PATCH] tools/qemu-xen: remove CFLAGS for qemu build"): > I think that there should be a way to pass individual external CFLAGS to > the tools, ipxe, qemu-traditional, qemu-xen, etc builds. Yes, but I think that's already supposed to exist. PREPEND_CFLAGS and APPEND_CFLAGS. Look in tools/Rules.mk. > From a distro perspective, its required to build libraries and binaries > with certain global cflags. Up to the point when qemu-upstream was > imported it worked as expected by exporting CFLAGS before 'make tools'. > Now qemu-upstream reuses these CFLAGS, but it cant deal with the result. > > How about something like this: > env \ > EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS" \ > EXTRA_CFLAGS_QEMU_UPSTREAM="" \ > EXTRA_CFLAGS_IPXE="" \ > ./configure It doesn't need to be plumbed through configure; it can just be used directly by make, although configure should use it for its tests I guess and probably doesn't right now. Ian.