From patchwork Fri Oct 19 10:43:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 149249 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3136063lji; Fri, 19 Oct 2018 03:45:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV60cbC26EEbwTynKa67AdRwBjdWq0r9d2wI8EhAZu5Rp6ldtIR7VGlW/JLrqr2z6gq56wfjK X-Received: by 2002:ac8:2837:: with SMTP id 52-v6mr32351054qtq.243.1539945928554; Fri, 19 Oct 2018 03:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539945928; cv=none; d=google.com; s=arc-20160816; b=thd/eMBH/oW4dVfZvErCAgwZz8HzAJPxyFDoY/23gsAWHxjVADFnSD+TwzukiM1uqX SILnT1VODHQgCXM4sIU00OAoxy5fo+Z1gHzP4wCCD0Nd3XnxX3Ged1wOX5Hi6zHWuE3w /HkHyaoe8JOCJr5f6AMEVBYuNk2fObdcPUSkASkF4WavJ6xw8tM3WfDnPuJ1smpU5zof xKPyFUH+Aw4jYx/UplUL3vmLTVf922zu58kmS3LtjsVH+AM4C7ir2rrPJ45ssa5fcyJi Br7nwow6IM03jOn4ej8CvvdHqHlmC3cnWU2xao6l2lNuSZqQTK0J9yox7xLIu+cK6IyQ 0RVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=OtxDcuQ5uCwXgWJfRQBn33QaYSZaJpQdK+EBeouo5gM=; b=pSofdFn4PCWDLBVTcJxp+VqxjoS/P3+U9RkC3HZLZk2JYbQvtSYPah7Yogb6L+XhDL v/Wh+xu1UkLtJ1J3DCjjsOICaP4XzclJSck/1nsMmX2AyZ8mfooipnwR0L1tmmTJA582 hl9I0HxRyQgknZGqXqqfa/cGtZ5VCsTUxDR6yMzFuv8cR+MwP4na2uVLFasQ58jkfLPw A4K1pP18h8OV1mrB2s3J9+vtIWNuz/cquwEUH5Y3x0OTJvRGpaivl2GbqpezAq4BKAnw PdVVUKU/th3Bl1oSY4HVeqSs38CgqQ8LNlarXkjGPS1Rovtj+pSNHWa6poXThvCMaXwe NV5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="AT/hW+aQ"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x36-v6si6658610qtd.243.2018.10.19.03.45.28 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 19 Oct 2018 03:45:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="AT/hW+aQ"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDSHY-0004pU-3a for patch@linaro.org; Fri, 19 Oct 2018 06:45:28 -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) 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-Received: by 2002:adf:81e1:: with SMTP id 88-v6mr36910625wra.19.1539945812714; Fri, 19 Oct 2018 03:43:32 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , richard.henderson@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Reported-by: Richard Henderson --- configure | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.17.1 Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Richard Henderson Reviewed-by: Richard Henderson 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="$cpu" supported_cpu="yes" - eval "cross_cc_${cpu}=\$host_cc" + eval "cross_cc_${cpu}=\$cc" ;; i386|i486|i586|i686|i86pc|BePC) cpu="i386" supported_cpu="yes" - cross_cc_i386=$host_cc + cross_cc_i386=$cc ;; x86_64|amd64) cpu="x86_64" supported_cpu="yes" - cross_cc_x86_64=$host_cc + cross_cc_x86_64=$cc ;; armv*b|armv*l|arm) cpu="arm" supported_cpu="yes" - cross_cc_arm=$host_cc + cross_cc_arm=$cc ;; aarch64) cpu="aarch64" supported_cpu="yes" - cross_cc_aarch64=$host_cc + cross_cc_aarch64=$cc ;; mips*) cpu="mips" supported_cpu="yes" - cross_cc_mips=$host_cc + cross_cc_mips=$cc ;; sparc|sun4[cdmuv]) cpu="sparc" supported_cpu="yes" - cross_cc_sparc=$host_cc + cross_cc_sparc=$cc ;; *) # This will result in either an error or falling back to TCI later