qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 30/42] Rename CPPFLAGS to CFLAGS


From: Juan Quintela
Subject: [Qemu-devel] Re: [PATCH 30/42] Rename CPPFLAGS to CFLAGS
Date: Thu, 30 Jul 2009 18:24:53 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Jamie Lokier <address@hidden> wrote:
> Juan Quintela wrote:
>> Paolo Bonzini <address@hidden> wrote:
>> >> Ok, and what are that options?
>> >> Looking at today Makefiles, the only things that I see that the user
>> >> could want changing is:
>> >>   -g
>> >>   -O2
>> >>   -fno-strict-aliasing
>> >>   -fno-unit-at-a-time (ppc)
>> >>   -msmall-data (alpha)
>> >>   -mno-sdata (ia64)
>> >>
>> >> Rest of things are -I/-D stuff, that you don't want to touch from the
>> >> command line at all.
>> 
>> Ok, with me, then the proposal is:
>> rename CFLAGS into QEMU_CFLAGS
>> leave in CFLAGS only "-g -O2"
>
> A good trick is to make sure CFLAGS is included at the _end_ of
> QEMU_CFLAGS (or that it comes after QEMU_FLAGS in commands), not
> anywhere else:
>
>    CFLAGS = -g -O2
>    QEMU_CFLAGS = -msome-option -fno-strict-aliasing $(CFLAGS)
>
> This way, users can override many options in QEMU_CFLAGS if they have
> reason to, by supplying the opposite flag, as options coming later
> usually have precedence:
>
>    make CFLAGS='-g -O2 -fstrict-aliasing'
>
>    ==> gcc -msome-option -fno-strict-alising -g -O2 -fstrict-aliasing <- wins

That is already done, I moved carefully to always prepend things.
Whatever that you put in --extra-cflags goes at the end of the line.

Later, Juan.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]