From patchwork Wed May 12 10:20:51 2021 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: 435490 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4697594jao; Wed, 12 May 2021 03:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyySbxFeqXjIJB4TQSw5rsuDhtM8oSEzsq8+omy1NZasMC7meP+ttdcKNOuMvVNuulXVE7G X-Received: by 2002:a67:1447:: with SMTP id 68mr30631291vsu.20.1620815812138; Wed, 12 May 2021 03:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815812; cv=none; d=google.com; s=arc-20160816; b=zMrwLhe7YtVupF0M4r6BLpZ1rul9qN9q7y2D86rr6t+pSxT3lwkTqnr1LVyoqWRQPy qiLVzBRjyRDxGcF4Q2MnOc8NOvVONNgzqSLmFckSyVQ7AQu1zZHK0+r63agv0W7r1O/6 j+XVztcZAo0SuwIbIEmvPGu5xM3sje4sAawhwLT5aOcSUC8rn5Yg9+PmMzT+gcjySSGM 1GAgYk4ff87n+Geglyvwti5/JX/spsanfsxKfRQdjg1siw1W7y1sffNUvKWWzLLGSmhf AaRV3FG6YxeUGQpkxAMFQE/yFvZd8vfZNb8ZEvWnHsjDhzw7YD75K5w0ak9e/ycrmUXN L1BQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=KcSppdWoWdBtZqATd+Yueqjnp9HE8N2cdlmtTmEhLUY=; b=lHadBUYJwGaa7t9369itO1Tss1QnaSbMKNT41a9Tcg7gPkYoRfckelM6EpnN9Pji7b d9UPrcH+ynkzJcyUfDedVuramNiDK/t0Y8tldVbOqg5ePVSH8FrVFy45KMd+TP/crt34 mv4kG/0qB8emOw4jnLEey9B4tjNtllUGzEGMOVcHg/SQBa31smaXzgTUo0n2kcXg5ujA pcFhgOMkRM4Kl0ds/NDxGdk/qmhj6hW5CLf85RD43C81XKSo8ibP4C6Q7J2g+bThBnFa /IH9Gp5ZA5TUs7Eeb/ISFJIfVPBaodUt0qnz/4ldssJTJIvXEU4aqCB3xqSit5LIpfHH vSEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xb8nEC9D; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id a16si1106808vsp.440.2021.05.12.03.36.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:36:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xb8nEC9D; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:45054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmEV-0002LI-Gw for patch@linaro.org; Wed, 12 May 2021 06:36:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8W-0000Y2-Lo for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:40 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:41525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8Q-0000aN-Gd for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:38 -0400 Received: by mail-wr1-x435.google.com with SMTP id d11so23064282wrw.8 for ; Wed, 12 May 2021 03:30:32 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=KcSppdWoWdBtZqATd+Yueqjnp9HE8N2cdlmtTmEhLUY=; b=xb8nEC9DvYabLCgK0939aTmSTTjfSLIr6mhwMlZo94VbCtaV3YoU8SSAkj3GSOOGfn EPmOLLoK07U+M5AXeIiwuwlkv0nTcpHoZ2yxCzif5/BETWT0epInKg9kFTqV6o6aEZnI TeA7cV5lcaqjOwpizPG/R0W9qEpwwq8jW+mkMuad/XZkcXv2K+x88Ez5GFgNopIpJN24 m22FHywgI4/Xpmt3mtaaUnnGVmBzoBpnX5Pd12kIr4UWGhh8RC8j8jRW0fqhH0kKdREI QPZCPBsYyKU/DwKm4DXLNP0DD/5x91hg8ur0DkTW1otf3pa9MGpPuEG+A5sPoPBJOrYo 0Mug== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KcSppdWoWdBtZqATd+Yueqjnp9HE8N2cdlmtTmEhLUY=; b=RKVDM1Xp9lUHe+V1Bi4VwQbFAkFO3rZUijINgiYJuSO61ADM8OrTzed3XpSsGmdkCk 7l2gysY0Q8AL4i2XGEhCQ1YNmauLh+JPxwVzvUV+wgJafiQH1TDVFNZ646CLEfdXfvXz XK8tf3UZfKdgigQ5ZvCP83dmhr0X9EGR0BFXAN3TEf6ESTFZS35qD92gI0WdrW9SzB+T 4t+qUXAjPuizPkGeeXIHr104o1OGECaQVM+WHpRnRsvphSlZshlmnN4worPUUpnZ5bgi YL30EovBr9bwmsLi6z2bLE3eGz0ZFdlv9tk+J6VlJX9hAkVBudzuEtfEj7syr9H2jV4y plTg== X-Gm-Message-State: AOAM530YPxNCk5jzMfxfSgQCM38C/cqokhlTN+6hIcfu97sW7M8jCn2J gc7GV8wmxrQS3zPkKQRKzhqoMg== X-Received: by 2002:a05:6000:12cc:: with SMTP id l12mr6300745wrx.91.1620815431883; Wed, 12 May 2021 03:30:31 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a9sm29420558wrw.26.2021.05.12.03.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4BE311FFB8; Wed, 12 May 2021 11:20:54 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 31/31] configure: use cc, not host_cc to set cross_cc for build arch Date: Wed, 12 May 2021 11:20:51 +0100 Message-Id: <20210512102051.12134-32-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Otherwise you run into hilarity like trying when cross compiling a 32 bit ARM build on a 64 bit system trying to use host_cc to build 32 bit test cases. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/configure b/configure index 1bf53961c2..daa1aa69be 100755 --- a/configure +++ b/configure @@ -1656,7 +1656,7 @@ case "$cpu" in # No special flags required for other host CPUs esac -eval "cross_cc_${cpu}=\$host_cc" +eval "cross_cc_${cpu}=\$cc" cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" QEMU_CFLAGS="$CPU_CFLAGS $QEMU_CFLAGS"