From patchwork Fri May 25 13:38:08 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: 136878 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3603962lji; Fri, 25 May 2018 06:39:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKPUKUGVLSbFbLGN34Sbxd1iO8Ih+84AUwOMXUEtZj5UyAFWDcyyKbnxMeJ6B8KA0YGxMNm X-Received: by 2002:a37:9007:: with SMTP id s7-v6mr2079541qkd.354.1527255562966; Fri, 25 May 2018 06:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527255562; cv=none; d=google.com; s=arc-20160816; b=cxLFyJYcSSEk+Ux/3r1eH4z4KeLYEpt22hytgaV7tmojNre2Cr2Dkx27xV/pvBEcyd epbVFk75rGJi/2KVkhbMunWgyEckPhPYH3QR+qow/XOUcoOwS5B8AD6NixCqDmKtlZSO XPYcoWem4sgbBw1VpqBx73/g1h5sWqt64d8V5EgCP5r+QVcm/+sQjNdsyp882ge9fsgO zMenrG13g8bPVnw4Z5rQeoSYLrM5hWQCyM/vvCTbix9rdr0HBn28Wp9U0fu2PtldOOsb JTGJHDWiLjVnzuo94QNfY2Vfkx+9ZvfgRsHbM9glerP8mMWMBBdBLHOqceEHoiH2N7r9 iIfw== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=mzi2cO7ihFdlzP1a37KZsKMAKAHMCH/BTnqxwBv8g0g=; b=ivb25cLtsoKF9/PYks7OIKz4Umgk+46Somb4n3RfUkoC7vfa3KoEkWbE/Awke74B/2 T2lLel4FQ0aa2Glq/p7yD4AGZDmB9jkBRxMORs/AWLv1WwSzFarMVK9f8YKT3QnDugoJ 013UjUgREth9z1yNe1Qczpu0xqbFgvx0xDnZOcNMkO6YdC7xwETa9W6RoNbOZRbZDNty UYEwihGKyFzTAcRLTz7pgc0qquCgcVLnOkQrgyDd84mtj7rcQcaGcjkqwb/vQl95b7Yb Tz+Iyd1+Ro5S2Ib5vDHRWNyqYaL2eITdlpxpF4CPeOSazja2KuPUA9QaaLpNjDgfQf1i CkuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=JDn7Rcmr; 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 2-v6si5252377qku.200.2018.05.25.06.39.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 06:39:22 -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=JDn7Rcmr; 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]:44042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMCwE-0004vL-DC for patch@linaro.org; Fri, 25 May 2018 09:39:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMCvr-0004tt-GJ for qemu-devel@nongnu.org; Fri, 25 May 2018 09:39:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMCvq-0005u4-Os for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:59 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:37961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMCvq-0005tX-IS for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:58 -0400 Received: by mail-wr0-x230.google.com with SMTP id 94-v6so9318903wrf.5 for ; Fri, 25 May 2018 06:38:58 -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=mzi2cO7ihFdlzP1a37KZsKMAKAHMCH/BTnqxwBv8g0g=; b=JDn7RcmrP3eSwwyw8Dghn+NqAbA3NkmcB7ZFago2oYYvVLKD+b2JCtSHRCKt9B4/Ha sPJrPimE5cRV6Mc4Hz0phEv9xx6o+TZMzI39OMNfJrsfY8dyVmFoJuhilJvit7AEaK4W EAQY3+36gIbMF5oC8yeFDMZ9Z9dlFaidOGYCo= 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=mzi2cO7ihFdlzP1a37KZsKMAKAHMCH/BTnqxwBv8g0g=; b=fiwqkg6bKQ/3vwZqXATsKI9OS+cA0kweuWT4P9RO5tvBluXmXaHVHvgA3BISNZ56+2 /OfTlft0YYzvAJrl58i+5uclrHiVUQe40w/MnClzv6rMyvfWEivqwSCvMIjWTRyOedJC X4Hm0mtUw/17RvUjOBCETb3ITCO1DRiJQOKcMo35MeiBSZSDZZmj4VY2rcR1gf7X22+q rCjh005cFs9nI3PlfyS/zd7brXTq5z/LQvkEdrnFNVWz569r5vUZyYrZDcP5GJpu1jvI /Nii4DV5L1AUeWQh+sCSgmxvcX4gdIGR37JWVq3AWmy80gBFw/BNVPh34u+5T5g/2jCB rctw== X-Gm-Message-State: ALKqPweMMNqwFbx/plQ/MNBabrKMU3SK41WZKpRJ1XjZxrHtezxGxR55 gayNFTtvBFVJK0oZQxkiD5ZwkA== X-Received: by 2002:adf:a398:: with SMTP id l24-v6mr2027700wrb.208.1527255537485; Fri, 25 May 2018 06:38:57 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v31-v6sm15767830wrc.80.2018.05.25.06.38.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 06:38:53 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id B6D513E06C7; Fri, 25 May 2018 14:38:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Fri, 25 May 2018 14:38:08 +0100 Message-Id: <20180525133851.27161-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525133851.27161-1-alex.bennee@linaro.org> References: <20180525133851.27161-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::230 Subject: [Qemu-devel] [PATCH v5 06/49] configure: set cross_cc_FOO for host compiler 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?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We can build tests for the host system with the compiler that we have selected. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- configure | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/configure b/configure index 48a3675a6b..cc375abe15 100755 --- a/configure +++ b/configure @@ -1431,26 +1431,38 @@ case "$cpu" in ppc) CPU_CFLAGS="-m32" LDFLAGS="-m32 $LDFLAGS" + cross_cc_powerpc=$cc + cross_cc_cflags_powerpc=$CPU_CFLAGS ;; ppc64) CPU_CFLAGS="-m64" LDFLAGS="-m64 $LDFLAGS" + cross_cc_ppc64=$cc + cross_cc_cflags_ppc64=$CPU_CFLAGS ;; sparc) CPU_CFLAGS="-m32 -mv8plus -mcpu=ultrasparc" LDFLAGS="-m32 -mv8plus $LDFLAGS" + cross_cc_sparc=$cc + cross_cc_cflags_sparc=$CPU_CFLAGS ;; sparc64) CPU_CFLAGS="-m64 -mcpu=ultrasparc" LDFLAGS="-m64 $LDFLAGS" + cross_cc_sparc64=$cc + cross_cc_cflags_sparc64=$CPU_CFLAGS ;; s390) CPU_CFLAGS="-m31" LDFLAGS="-m31 $LDFLAGS" + cross_cc_s390=$cc + cross_cc_cflags_s390=$CPU_CFLAGS ;; s390x) CPU_CFLAGS="-m64" LDFLAGS="-m64 $LDFLAGS" + cross_cc_s390x=$cc + cross_cc_cflags_s390x=$CPU_CFLAGS ;; i386) CPU_CFLAGS="-m32" @@ -1471,7 +1483,7 @@ case "$cpu" in CPU_CFLAGS="-mx32" LDFLAGS="-mx32 $LDFLAGS" cross_cc_i386=$cc - cross_cc_cflags_i386="-m32" + cross_cc_cflags_i386=$CPU_CFLAGS ;; # No special flags required for other host CPUs esac