From nobody Sat May 4 17:59:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1539945910207907.5273694670179; Fri, 19 Oct 2018 03:45:10 -0700 (PDT) Received: from localhost ([::1]:48474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDSHF-0004SQ-42 for importer@patchew.org; Fri, 19 Oct 2018 06:45:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDSFl-0003oF-LP for qemu-devel@nongnu.org; Fri, 19 Oct 2018 06:43:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDSFi-0006KP-Fx for qemu-devel@nongnu.org; Fri, 19 Oct 2018 06:43:37 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:35087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDSFh-0006Ij-Qs for qemu-devel@nongnu.org; Fri, 19 Oct 2018 06:43:34 -0400 Received: by mail-wr1-x442.google.com with SMTP id w5-v6so36888524wrt.2 for ; Fri, 19 Oct 2018 03:43:33 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d16-v6sm20738620wrw.78.2018.10.19.03.43.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Oct 2018 03:43:31 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5393A3E029A; Fri, 19 Oct 2018 11:43:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OtxDcuQ5uCwXgWJfRQBn33QaYSZaJpQdK+EBeouo5gM=; b=AT/hW+aQn4qz3AD9tMJtAcdCp/3Um3565Bbhkio9nkl2RM0vlW/6zZ+R/nfqbz80h0 57t5Vs9Qivjeqty7phlwqiM5Zh/djD2sG300xV2HaacZdPUW653MhHVAptM/I5Yq4BwN 7Ivt2Ku95y+c3O9J74Arp8txZLGsgfS59ORwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OtxDcuQ5uCwXgWJfRQBn33QaYSZaJpQdK+EBeouo5gM=; b=Bk2rkYBQFLE7nwfOswLoz5Yxz577Cg3vtol0J9/JqirFkCQ56oFGMJUvEEkzpYfe++ UgbZTysv2qhvdjdGpvYTiiojgGYpOvvX5ZO7r/9g+u2PKps0vwg3NxVXxFV8TVPQ+uq1 Qr7MW++bknnxVYBgeB4j0a7FVZAdTkpyeX4Ik3c8y2jiGiYz5v8feu8iMVzpTu4LM9YA w0/t8Nqh6mmLu46wckcFOqVhFlml56m+R/HGVN9U5/xr5YlQm6q15qf+q14+GWjR+npt ZdSNFUooR7XMlyDcPhxXiFQhXmBsibjaSF/8p0mmxdLByM1yraGBOvcW4cSDV+6ha05X S7cw== X-Gm-Message-State: ABuFfoi50jGOhcIW55Qg2+XuHZtcoEJ/fIlFLcSu/pd5MrAvWJvdYQ+L TmC68VuOpy9Fq5l8elG89Oi2IA== X-Google-Smtp-Source: ACcGV62E74R/uyGR9qUky51q6GfItmtWK4YFuT5ovDeoRyuB03CvHskiRqVRN04eFG8CMyw3GusH9A== X-Received: by 2002:adf:81e1:: with SMTP id 88-v6mr36910625wra.19.1539945812714; Fri, 19 Oct 2018 03:43:32 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 19 Oct 2018 11:43:26 +0100 Message-Id: <20181019104326.28052-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 Subject: [Qemu-devel] [PATCH] configure: set cross_cc_FOO from cc, not host_cc X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 The purpose of the code is to use the designated compiler for building the targets test cases. This is not actually host_cc which will still be cc even when we are cross compiling. As the tests for $cpu all use $cc we should do the same. Signed-off-by: Alex Benn=C3=A9e Reported-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Tested-by: Richard Henderson --- configure | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 9138af37f8..d6605bd633 100755 --- a/configure +++ b/configure @@ -717,37 +717,37 @@ case "$cpu" in ppc|ppc64|s390|s390x|sparc64|x32) cpu=3D"$cpu" supported_cpu=3D"yes" - eval "cross_cc_${cpu}=3D\$host_cc" + eval "cross_cc_${cpu}=3D\$cc" ;; i386|i486|i586|i686|i86pc|BePC) cpu=3D"i386" supported_cpu=3D"yes" - cross_cc_i386=3D$host_cc + cross_cc_i386=3D$cc ;; x86_64|amd64) cpu=3D"x86_64" supported_cpu=3D"yes" - cross_cc_x86_64=3D$host_cc + cross_cc_x86_64=3D$cc ;; armv*b|armv*l|arm) cpu=3D"arm" supported_cpu=3D"yes" - cross_cc_arm=3D$host_cc + cross_cc_arm=3D$cc ;; aarch64) cpu=3D"aarch64" supported_cpu=3D"yes" - cross_cc_aarch64=3D$host_cc + cross_cc_aarch64=3D$cc ;; mips*) cpu=3D"mips" supported_cpu=3D"yes" - cross_cc_mips=3D$host_cc + cross_cc_mips=3D$cc ;; sparc|sun4[cdmuv]) cpu=3D"sparc" supported_cpu=3D"yes" - cross_cc_sparc=3D$host_cc + cross_cc_sparc=3D$cc ;; *) # This will result in either an error or falling back to TCI later --=20 2.17.1