qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 00/37] Generate a proper LIBS variable


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 00/37] Generate a proper LIBS variable
Date: Wed, 22 Jul 2009 20:08:27 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2

--extra-cflags: remove it, we can use:

CFLAGS="foo bar" ./configure
(it is not there yet, but we can do it)

Agreed.

And we can use in each place that we modify CFLAGS:

CFLAGS="more stuff $CFLAGS"

Notice that the stuff that we invoked ./configure with comes last, as
we wanted for EXTRA_CFLAGS.

As an added bonus, we can compile all the tests in ./configure with that
variable set.

Which is good (e.g. if you have incompatible include files that cannot be included together).

As for compiling a file with different options, we want something like
that for Makefile, i.e.

make all
rm foo.o
make CFLAGS=-O0 foo.o

compile with -O0 as last option, that way we can "overwrite" the -O2
that came from the config-hosts.mak

Yes, that would work even though it's not the way Autoconf/Automake packages usually support CFLAGS (the idea there is that the user can put all crazy -f/-m options on configure's CFLAGS and disable them with "make CFLAGS=-g"; each way has opposite advantages and disadvantages).

Paolo




reply via email to

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