From: Olaf Hering <olaf@aepfle.de>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Roger Pau Monne <roger.pau@entel.upc.edu>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] tools/qemu-xen: remove CFLAGS for qemu build
Date: Fri, 2 Mar 2012 12:51:25 +0100 [thread overview]
Message-ID: <20120302115125.GA15758@aepfle.de> (raw)
In-Reply-To: <20303.48626.173624.191033@mariner.uk.xensource.com>
On Thu, Mar 01, Ian Jackson wrote:
> Olaf Hering writes ("Re: [Xen-devel] [PATCH] tools/qemu-xen: remove CFLAGS for qemu build"):
> > Its a way to pass RPM_OPT_FLAGS to build the tools. This includes things
> > like fortify-source (whatever the exact spelling is) and other global
> > flags to build a distro.
> > What other ways exist to pass that to the buildsystem for the tools?
>
> This is what EXTRA_CFLAGS and PREPEND_INCLUDES and so forth are for.
EXTRA_CFLAGS is only used by ipxe.
I think that there should be a way to pass individual external CFLAGS to
the tools, ipxe, qemu-traditional, qemu-xen, etc builds.
>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 <more options>
Then configure can pass these to the various Makefiles. In case of qemu
its configure could be invoked like
env \
CFLAGS="$(EXTRA_CFLAGS_QEMU_UPSTREAM)" \
$source/configure <qemu options>
In case of ipxe it would be "EXTRA_CFLAGS=$(EXTRA_CFLAGS_IPXE)".
I think you get the idea.
Right now I see the need for external CFLAGS only for tools itself, but
if the options are there one can use them also for the other targets if
there is a demand for it.
Olaf
next prev parent reply other threads:[~2012-03-02 11:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 16:45 [PATCH] tools/qemu-xen: remove CFLAGS for qemu build Olaf Hering
2012-03-01 17:42 ` Ian Jackson
2012-03-01 17:53 ` Olaf Hering
2012-03-01 18:20 ` Ian Jackson
2012-03-01 19:08 ` Olaf Hering
2012-03-02 11:51 ` Olaf Hering [this message]
2012-03-14 12:04 ` Ian Jackson
2012-03-14 16:46 ` Olaf Hering
2012-03-14 18:07 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120302115125.GA15758@aepfle.de \
--to=olaf@aepfle.de \
--cc=Ian.Jackson@eu.citrix.com \
--cc=roger.pau@entel.upc.edu \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.