From patchwork Sun Nov 14 11:48:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 71097 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 ozlabs.org (Postfix) with ESMTPS id 6C548B7103 for ; Sun, 14 Nov 2010 22:50:47 +1100 (EST) Received: from localhost ([127.0.0.1]:34252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHb6Y-0002o1-8R for incoming@patchwork.ozlabs.org; Sun, 14 Nov 2010 06:50:42 -0500 Received: from [140.186.70.92] (port=42186 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHb5F-0002mq-TK for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHb5E-0004Et-Pn for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:21 -0500 Received: from mail-pz0-f45.google.com ([209.85.210.45]:44131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHb5E-0004Eg-LF for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:20 -0500 Received: by pzk6 with SMTP id 6so976259pzk.4 for ; Sun, 14 Nov 2010 03:49:19 -0800 (PST) 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=C9uSbBxi9LCS2TjKINO3XaJYzXt7a5QQEvMl9PYPNF8=; b=PEqeMbzFjGt3CdrD7qJnsrtWbZ4Me4tO4YgJpiwLgriyiEtg9aj46pMl2TWdpBf35l cLjCbKK20gBa4EHqo/6dGx+qmlIAZIbmv87pfTA4GENEhoW4iQKTQzrOFI4TMukhVxVB 4c+B2CfH97pHQMKBIiPbiOlTt3WgcNa7YYkUc= 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=lYLl/JYzvqu7yPBr8R0Cyolgdb2e2n3hNs/7H736DwBjZLsijXolfPoZIbDVePgFBu 3pXxaZ6+28pVRmQV97dV0U0IUBU3IRuEbHva9pJdnxTGKTxxLDyWKiRhRP38NWWX1YPP JgzE3EwPBj0H7dqCo6ew/W5JoM9L3Yt6adKoU= Received: by 10.142.218.3 with SMTP id q3mr3310431wfg.158.1289735359808; Sun, 14 Nov 2010 03:49:19 -0800 (PST) Received: from localhost.localdomain (s209p8.home.99maxprogres.cz [85.93.118.17]) by mx.google.com with ESMTPS id x35sm7086810wfd.13.2010.11.14.03.49.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Nov 2010 03:49:18 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Sun, 14 Nov 2010 12:48:49 +0100 Message-Id: <1289735342-8660-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: <1289735342-8660-1-git-send-email-pbonzini@redhat.com> References: <1289735342-8660-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/14] 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 f62c1fe..756d72e 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="" @@ -100,7 +94,7 @@ for opt do case "$opt" in --cross-prefix=*) cross_prefix="$optarg" ;; - --cc=*) cc="$optarg" + --cc=*) CC="$optarg" ;; --cpu=*) cpu="$optarg" ;; @@ -129,12 +123,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"