From patchwork Mon Aug 3 12:46:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 30511 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 1D88CB6F34 for ; Mon, 3 Aug 2009 23:07:42 +1000 (EST) Received: from localhost ([127.0.0.1]:58714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXxGI-0000WQ-0W for incoming@patchwork.ozlabs.org; Mon, 03 Aug 2009 09:07:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXwys-00037b-Ak for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXwym-00033w-B6 for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:31 -0400 Received: from [199.232.76.173] (port=51653 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXwyk-00033c-Ad for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:26 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40760) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXwyj-0006sP-Ga for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:25 -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 n73CnOFN006395; Mon, 3 Aug 2009 08:49:24 -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 n73CnNn2025970; Mon, 3 Aug 2009 08:49:23 -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 n73Cn8MF009715; Mon, 3 Aug 2009 08:49:22 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 3 Aug 2009 14:46:02 +0200 Message-Id: <4b823f6a4b75c4565f32864e1ef441e977814452.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 11/81] move EXTRA_CFLAGS/LDFLAGS to the very beginning 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 Now, we compile all the tests with the values passed through the command line. Signed-off-by: Juan Quintela --- configure | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 537e7bb..35b3c7e 100755 --- a/configure +++ b/configure @@ -47,6 +47,10 @@ for opt do ;; --cpu=*) cpu="$optarg" ;; + --extra-cflags=*) CFLAGS="$optarg $CFLAGS" + ;; + --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS" + ;; esac done @@ -388,9 +392,9 @@ for opt do ;; --install=*) install="$optarg" ;; - --extra-cflags=*) EXTRA_CFLAGS="$optarg" + --extra-cflags=*) ;; - --extra-ldflags=*) EXTRA_LDFLAGS="$optarg" + --extra-ldflags=*) ;; --cpu=*) ;; @@ -1780,8 +1784,8 @@ fi echo "AR=$ar" >> $config_host_mak echo "OBJCOPY=$objcopy" >> $config_host_mak echo "LD=$ld" >> $config_host_mak -echo "CFLAGS=$CFLAGS $EXTRA_CFLAGS" >> $config_host_mak -echo "LDFLAGS=$LDFLAGS $EXTRA_LDFLAGS" >> $config_host_mak +echo "CFLAGS=$CFLAGS" >> $config_host_mak +echo "LDFLAGS=$LDFLAGS" >> $config_host_mak echo "ARLIBS_BEGIN=$arlibs_begin" >> $config_host_mak echo "ARLIBS_END=$arlibs_end" >> $config_host_mak echo "EXESUF=$EXESUF" >> $config_host_mak