From patchwork Wed Jun 3 13:08:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 49468 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F0B6420BE7 for ; Wed, 3 Jun 2015 13:48:48 +0000 (UTC) Received: by lani11 with SMTP id i11sf3255552lan.3 for ; Wed, 03 Jun 2015 06:48:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding:cc :subject:precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=uBnh172xtHRdpV2Jtk+phSBphLyQKct22WbLk8Q+f7I=; b=mpFcsLzIUAdnfYeVxpPkF+5o3w6u18wDrycPOYfdNIt1cZT94P8qFkEnkrqingxegi nk+H5PPAD0q5Glt1qC5AISgbwUZ0jfE05ya+I4Clkf4309HYMnQQPZ8v4hIWzxIRopBh trLvDodYiVPDZnsmSgo3WlhtQADIPn9uJnMWCWxPewtmiVALw0KGcgWp5d+0XD7FWS5z upuj0eEGpKCIaCa1o5UxJnONK/A0uX2ALPNqd+z79pqZJPwEZhZG6kybmve7AcK+SaOm Ky0ET4LEK3X8kd0Bd8kIonMExXjU7KDC3cnuIe6sSy0Qzn8lp8NXS7kxs5p4fw4swYCR D9DA== X-Gm-Message-State: ALoCoQl4yPGQW1UoWcfFEN0oR7rnIvrgkaN8iOWl5/GWaQB6HoiDNit+s63TblbRKcAMayl4jhtw X-Received: by 10.112.14.101 with SMTP id o5mr30508851lbc.3.1433339327673; Wed, 03 Jun 2015 06:48:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.105 with SMTP id lb9ls62324lab.10.gmail; Wed, 03 Jun 2015 06:48:47 -0700 (PDT) X-Received: by 10.152.6.39 with SMTP id x7mr31852068lax.18.1433339327522; Wed, 03 Jun 2015 06:48:47 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id ld2si18078229lab.101.2015.06.03.06.48.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 06:48:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by laei3 with SMTP id i3so8506624lae.3 for ; Wed, 03 Jun 2015 06:48:45 -0700 (PDT) X-Received: by 10.112.140.231 with SMTP id rj7mr31824600lbb.76.1433339325093; Wed, 03 Jun 2015 06:48:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3882351lbb; Wed, 3 Jun 2015 06:48:43 -0700 (PDT) X-Received: by 10.55.27.162 with SMTP id m34mr59422917qkh.94.1433339321869; Wed, 03 Jun 2015 06:48:41 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e109si619913qgf.118.2015.06.03.06.48.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Jun 2015 06:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:35667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0928-0000CG-W5 for patch@linaro.org; Wed, 03 Jun 2015 09:48:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0909-00057s-Sk for qemu-devel@nongnu.org; Wed, 03 Jun 2015 09:46:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0906-0000qX-IC for qemu-devel@nongnu.org; Wed, 03 Jun 2015 09:46:37 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:53089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0906-0000pi-Av; Wed, 03 Jun 2015 09:46:34 -0400 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 4FC48407B5; Wed, 3 Jun 2015 16:46:33 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.tls.msk.ru (Postfix) with SMTP id 6636EA57; Wed, 3 Jun 2015 16:08:53 +0300 (MSK) Received: (nullmailer pid 27474 invoked by uid 1000); Wed, 03 Jun 2015 13:08:52 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Wed, 3 Jun 2015 16:08:50 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Michael Tokarev , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [Qemu-devel] [PULL 30/30] configure: postfix --extra-cflags to QEMU_CFLAGS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mjt@tls.msk.ru X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Alex Bennée It makes sense that extra-cflags should be appended after the normal CFLAGS so they don't get overridden by default behaviour. This way if you specify something like: ./configure --extra-cflags="-O0" You will see the requested behaviour. Signed-off-by: Alex Bennée Signed-off-by: Michael Tokarev --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 4e2f78a..69190d2 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"