From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyN9u-0007Fb-RK for qemu-devel@nongnu.org; Fri, 29 May 2015 12:29:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyN9r-00086l-Je for qemu-devel@nongnu.org; Fri, 29 May 2015 12:29:22 -0400 Sender: Paolo Bonzini Message-ID: <556893DB.9030502@redhat.com> Date: Fri, 29 May 2015 18:29:15 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1432897012-1423-1-git-send-email-alex.bennee@linaro.org> <55684995.3070205@redhat.com> <877frrii83.fsf@linaro.org> In-Reply-To: <877frrii83.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] configure: don't apply -O2 if extra-cflags sets -O List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QWxleCBCZW5uw6ll?= Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On 29/05/2015 16:14, Alex Bennée wrote: > You mean just do: > > diff --git a/configure b/configure > index b707429..f13831a 100755 > --- a/configure > +++ b/configure > @@ -353,7 +353,7 @@ for opt do > ;; > --cpu=*) cpu="$optarg" > ;; > - --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS" > + --extra-cflags=*) QEMU_CFLAGS="$QEMU_CFLAGS $optarg" > EXTRA_CFLAGS="$optarg" > ;; > --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS" > > I guess at the time I was trying to be clean and avoiding multiple -O > calls. But I guess that will have the same effect. Yes, that. Most other QEMU_CFLAGS assignments add at the beginning, so I guess the remaining ones (including the --extra-cflags one) should too. Paolo