From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] tools/configure: add options to pass EXTRA_CLFAGS Date: Thu, 15 Mar 2012 14:46:36 +0100 Message-ID: <20120315134636.GA31539@aepfle.de> References: <994ac398f4dc639ad0ca.1331817586@probook.site> <4F61FD510200007800078ABF@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4F61FD510200007800078ABF@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, Mar 15, Jan Beulich wrote: > > This patch extends configure to recognize three environment variables > > which will be written to config/Tools.mk so they will be reused with > > each make invocation: > > EXTRA_CFLAGS_XEN_TOOLS= specifies CFLAGS for the tools build. > > EXTRA_CFLAGS_QEMU_TRADITIONAL= specifies CFLAGS for old qemu. > > EXTRA_CFLAGS_QEMU_XEN= specifies CFLAGS for new qemu. > > The new feature can be used like this in a rpm xen.spec file: > > > > env \ > > EXTRA_CFLAGS_XEN_TOOLS="${RPM_OPT_FLAGS}" \ > > EXTRA_CFLAGS_QEMU_TRADITIONAL="${RPM_OPT_FLAGS}" \ > > EXTRA_CFLAGS_QEMU_XEN="${RPM_OPT_FLAGS}" \ > > ./configure \ > > --libdir=%{_libdir} \ > > --prefix=/usr > > make > > > > To make sure the EXTRA_CFLAGS appear first in the command line > > Wouldn't one rather want them to appear last (to eventually override > other settings, namely the optimization level)? If thats desired then the EXTRA_CFLAGS_XEN_TOOLS part is not needed, APPEND_CFLAGS= could be used for that purpose. But this variable is not yet handled as autoconf variable. Olaf