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: Tue, 26 Oct 2004 06:49:49 +1000
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

Thomas Schwinge wrote:
On Sun, Oct 24, 2004 at 10:38:06PM +0200, Magnus Damm wrote:
At present it is not possible to alter 'CFLAGS', 'LDFLAGS' and 'LIBS'
when building QEMU without modifiying all the Makefiles.

I'd suggest the following:
The lines that explicitally set 'CFLAGS', 'LDFLAGS', 'LIBS' (and
others?) are removed from all Makefiles.


If you want to override those variables for a make you can specify them on the command line

make CFLAGS="-O2 -mcpu=athlon-xp" CC=/opt/gcc-3.4.2/bin/gcc

I have been doing to to compile with different CFLAGS and different versions of gcc.

This will override the default CFLAGS settings from the Makefile. Saves having to edit anything. You can use this to override other variables set in the Makefile. CC CXX CFLAGS LDFLAGS prefix DESTDIR ROOT. Maybe not DESTDIR and ROOT with qemu but they are 2 other things that do get set this way with other projects.

--
   James




reply via email to

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