|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] tools/qemu-xen: remove CFLAGS for qemu build
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |