From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTgF1-0007BB-RD for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:08:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTgEw-00078n-OH for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:08:35 -0400 Received: from [199.232.76.173] (port=37679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTgEw-00078g-EL for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:08:30 -0400 Received: from mx2.redhat.com ([66.187.237.31]:54913) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTgEv-0002Y9-Uw for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:08:30 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6MI8SLg015084 for ; Wed, 22 Jul 2009 14:08:29 -0400 Message-ID: <4A67559B.30301@redhat.com> Date: Wed, 22 Jul 2009 20:08:27 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4A673FE4.20903@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 00/37] Generate a proper LIBS variable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org > --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