From patchwork Mon Aug 3 12:46:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 30509 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 431B0B6F34 for ; Mon, 3 Aug 2009 23:04:26 +1000 (EST) Received: from localhost ([127.0.0.1]:53004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXxDA-0007wY-4k for incoming@patchwork.ozlabs.org; Mon, 03 Aug 2009 09:04:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXwyq-000375-Bo for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXwyi-00032J-N1 for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:29 -0400 Received: from [199.232.76.173] (port=51648 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXwyh-00031m-VA for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:24 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40755) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXwyg-0006rL-VL for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:23 -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 n73CnMs4006379; Mon, 3 Aug 2009 08:49:22 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n73CnL5D025959; Mon, 3 Aug 2009 08:49:21 -0400 Received: from localhost.localdomain (vpn-12-117.rdu.redhat.com [10.11.12.117]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n73Cn8MD009715; Mon, 3 Aug 2009 08:49:20 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 3 Aug 2009 14:46:00 +0200 Message-Id: <0439b7528452a6aac56055b8b866c03674e7c632.1249301360.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 09/81] We want to add options at the beggining, not at the end of variables X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- configure | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 7b0ff90..a4a7d13 100755 --- a/configure +++ b/configure @@ -1415,12 +1415,12 @@ fi # After here, no more $cc or $ld runs # default flags for all hosts -CFLAGS="$CFLAGS -g -fno-strict-aliasing" +CFLAGS="-g -fno-strict-aliasing $CFLAGS" if test "$debug" = "no" ; then - CFLAGS="$CFLAGS -O2" + CFLAGS="-O2 $CFLAGS" fi -CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls" -LDFLAGS="$LDFLAGS -g" +CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls $CFLAGS" +LDFLAGS="-g $LDFLAGS" # Consult white-list to determine whether to enable werror # by default. Only enable by default for git builds @@ -1435,12 +1435,12 @@ if test -z "$werror" ; then fi if test "$werror" = "yes" ; then - CFLAGS="$CFLAGS -Werror" + CFLAGS="-Werror $CFLAGS" fi if test "$solaris" = "no" ; then if $ld --version 2>/dev/null | grep "GNU ld" >/dev/null 2>/dev/null ; then - LDFLAGS="$LDFLAGS -Wl,--warn-common" + LDFLAGS="-Wl,--warn-common $LDFLAGS" fi fi @@ -1598,7 +1598,7 @@ if test "$gprof" = "yes" ; then fi if test "$static" = "yes" ; then echo "CONFIG_STATIC=y" >> $config_host_mak - LDFLAGS="$LDFLAGS -static" + LDFLAGS="-static $LDFLAGS" fi if test $profiler = "yes" ; then echo "CONFIG_PROFILER=y" >> $config_host_mak