qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] CFLAGS nitpicking


From: James Boddington
Subject: Re: [Qemu-devel] CFLAGS nitpicking
Date: Wed, 27 Oct 2004 11:02:54 +1000
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

address@hidden wrote:
On Tue, Oct 26, 2004 at 06:49:49AM +1000, James Boddington wrote:

Thomas Schwinge wrote:

Thanks, I'm aware of that, but doing it in that way will also override
any '*FLAGS += something' in the Makefiles, which might not always be
good.
Either we should implement my suggestions or have 'EXTRA_CFLAGS' (etc.)
to be used for user customisations in the Makefiles.


When using make CFLAGS=something that is the behavour I want. Being able to set CFLAGS and not have the Makefile override what I set.

Though I do agree an extra cflags variable would be nice in some cases. One problem is HOST_CC and CC using the same CFLAGS.

make CC=gcc-3.4.2 CLFAGS="-O2 -mtune=athlon-xp"

The Makefile will set HOST_CC to gcc which is 3.3.5 on my system. Gcc 3.3.5 does not accept the mtune flag so the make fails when building dyngen with HOST_CC. Though a simple work around is to also set HOST_CC so the native gcc is not used which does defeat the purpose of having HOST_CC and CC.

--
   James




reply via email to

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