Received: from eggs.gnu.org ([140.186.70.92]:44643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0yWE-0007To-2e for qemu-devel@nongnu.org; Tue, 06 Sep 2011 12:29:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0yW8-0006BW-84 for qemu-devel@nongnu.org; Tue, 06 Sep 2011 12:29:02 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:3741 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0yW7-0006BC-SI for qemu-devel@nongnu.org; Tue, 06 Sep 2011 12:28:56 -0400 From: Brad References: <20110906080245.GA26732@rox.home.comstyle.com> <4E65F3A9.80905@redhat.com> In-Reply-To: <4E65F3A9.80905@redhat.com> Content-Type: text/plain; charset=utf-8 Content-ID: <1315326650.9576.7.camel@Nokia-N900> Date: Tue, 06 Sep 2011 12:30:51 -0400 Message-Id: <1315326651.9576.8.camel@Nokia-N900> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Only build with -g CFLAGS/LDFLAGS if using --enable-debug and add --optflags. Reply-To: Brad List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org ----- Original message ----- > On 09/06/11 10:02, Brad wrote: > > Only build with -g CFLAGS/LDFLAGS if using --enable-debug. > > Add --optflags to allow overriding the default optimization > > level added to CFLAGS. > >=20 > > This is a first draft of coming up with a patch I could potentially > > push upstream based on much cruder local patches to do something > > similar. I'm trying to eliminate having to patch the configure > > script. >=20 > You don't have to.=C2=A0 You can just run 'make CFLAGS=3D"$optflags"' = to=20 > override the defaults.=C2=A0 Nevertheless having optflags would be nic= e as=20 > you don't have to type this for each make run then. I do when its unconditionally on the commandline either way. If the confi= gure scipt didnt put it their if CFLAGS wasnt empty it wouldnt be an issu= e. > I don't think we should mess with the -g flag.=C2=A0 It should stay en= abled=20 > by default, so you can easily get a useful stacktrace out of a core=20 > without having to rebuild with debug info first. I dont care what the default is as long as I can disable it without patch= ing.