From patchwork Tue Oct 12 13:00:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 67553 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]) by ozlabs.org (Postfix) with ESMTP id E74B0B70E5 for ; Wed, 13 Oct 2010 00:11:18 +1100 (EST) Received: from localhost ([127.0.0.1]:44914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5eYK-0000XR-PD for incoming@patchwork.ozlabs.org; Tue, 12 Oct 2010 09:06:00 -0400 Received: from [140.186.70.92] (port=40574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5eTg-0007PW-5o for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:01:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5eTe-0004Mk-0Y for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:01:12 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:52643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5eTd-0004Mc-Ua for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:01:09 -0400 Received: by qwh5 with SMTP id 5so1841033qwh.4 for ; Tue, 12 Oct 2010 06:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:x-mailer:in-reply-to:references; bh=Slxj6rZluu2BOngoyKene4YFhMimJrREKukA0EVm//8=; b=EJg34cWG+ex4sSPvg+gfV5AOeLkMuPaLbiKFAyeEgne0Qcb2XDy2uG6GaSVI0wxanW wf5KUYsDWWeAKrCWFuiYZn2F9kpNMX3wNj+vv3oLGJJu1vlKlNYGeGlEqTcKsCbbN/J/ UjRVuJiyfmHbaxclwS+oRKgZ73cjxS0lYNrXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; b=T+0cl3u66mUYjWvgO5fUxWoCteLQUfG8Oo5ZPW5blZSWCdi+26Fnh8Bixx8QOGZAKX inYUPxr49QNbwsiy80Ykcw/doyDxgptDauODI/U4JE1UqfEOPjbJsq+2MroVgweVv6v2 u3LlFBeRpBLy8pSCWNN4QRRQGQdqtXLuwn+zA= Received: by 10.224.180.209 with SMTP id bv17mr5656833qab.90.1286888469055; Tue, 12 Oct 2010 06:01:09 -0700 (PDT) Received: from localhost.localdomain (nat-pool-brq-t.redhat.com [209.132.186.34]) by mx.google.com with ESMTPS id s34sm5931078qcp.20.2010.10.12.06.01.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Oct 2010 06:01:07 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 12 Oct 2010 15:00:19 +0200 Message-Id: <1286888457-5033-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1286888457-5033-1-git-send-email-pbonzini@redhat.com> References: <1286888457-5033-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 01/39] default compilation tools to environment 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: Paolo Bonzini --- configure | 20 +++++++------------- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/configure b/configure index d303061..d9f4805 100755 --- a/configure +++ b/configure @@ -74,19 +74,13 @@ interp_prefix="/usr/gnemul/qemu-%M" static="no" sparc_cpu="" cross_prefix="" -cc="gcc" audio_drv_list="" audio_card_list="ac97 es1370 sb16" audio_possible_cards="ac97 es1370 sb16 cs4231a adlib gus" block_drv_whitelist="" host_cc="gcc" -ar="ar" make="make" install="install" -objcopy="objcopy" -ld="ld" -strip="strip" -windres="windres" helper_cflags="" libs_softmmu="" libs_tools="" @@ -99,7 +93,7 @@ for opt do case "$opt" in --cross-prefix=*) cross_prefix="$optarg" ;; - --cc=*) cc="$optarg" + --cc=*) CC="$optarg" ;; --cpu=*) cpu="$optarg" ;; @@ -128,12 +122,12 @@ done # Using uname is really, really broken. Once we have the right set of checks # we can eliminate it's usage altogether -cc="${cross_prefix}${cc}" -ar="${cross_prefix}${ar}" -objcopy="${cross_prefix}${objcopy}" -ld="${cross_prefix}${ld}" -strip="${cross_prefix}${strip}" -windres="${cross_prefix}${windres}" +cc="${cross_prefix}${CC-gcc}" +ar="${cross_prefix}${AR-ar}" +objcopy="${cross_prefix}${OBJCOPY-objcopy}" +ld="${cross_prefix}${LD-ld}" +strip="${cross_prefix}${STRIP-strip}" +windres="${cross_prefix}${WINDRES-windres}" # default flags for all hosts QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"