From patchwork Tue Apr 24 15:23:25 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: 134117 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2377022lji; Tue, 24 Apr 2018 08:30:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq0XlPyRax4soY+6v6MGM7BC6wB6DF7Rc+q7g3H5Hkim50MOVJK0kZZHT9t3mgP64ayk64g X-Received: by 10.55.168.71 with SMTP id r68mr25916940qke.154.1524583814110; Tue, 24 Apr 2018 08:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583814; cv=none; d=google.com; s=arc-20160816; b=xFbv27GH5NMrZGSQ2wVhwTtwY/uU++nHQqgNQflqIJWmaY7sM/dWb8l9XtMZIW1AjA Tbzry5z5YXAnKkqdWW446ZqHahhfOVo6CH1lS08lE4MLvGVhy4TnDiMHuWkMnLExej9N TIz9zM7kSrzVfZAv9BUFgwOecVOPQHbXFsFSNExeVdKQw0DC7sBKP7RCw2san/MbkL3g CiydzMe9C4P11uGi0biMDfsSVXKrA6KQ2tJNaYJ5DJi2t8trSoLJ5pm7/1LKQxNpDsBD G9DPJadEmtVC6OcUOMpnpgMElgsWLk1PPV4wf0QVW/x8bm+nwD929JMnlaqKTccuRi8Q KJeQ== 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=Aq3BXwNARx25ztby3oO9Dmi8umjh3lGwzXi+DBjplmo=; b=jAIaDrgImpjfPPDqJDtTLaKBJTwIYrZ01AaVRQNgGaJaljcKNiM8rrfIIeqeSW7bko 0LOXQ+uMd9Yd8ScxAxvm5f8baNmtheFguJq/m8tLGyO5IDF6/c9uWYEegQuopzyZDedh z9vkFzFgwNKh931VSa05QH5KMqoQTjSnxKfhtybaivfjtFh+/PseUPQnomTLhPGdqBBI nzmzd4jpkkqP9MiduU9k7vWXDXnF/RJC2pdSz66UNCTAL4cZwg1Nu13aB95wy+kWFcty 48Ovs6OcBJy59mPv26H3O8bGujX+T2i5Ivr21oGZx0yYuhktf9laywUx8Yw0/9drRpf0 Aenw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CZR5pGxB; 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 e28-v6si972154qte.263.2018.04.24.08.30.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:30:14 -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=CZR5pGxB; 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]:59103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAztV-0003HD-Ff for patch@linaro.org; Tue, 24 Apr 2018 11:30:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznk-0006YI-Vh for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznh-0005Pr-3t for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:16 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:40135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzng-0005O3-UK for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:13 -0400 Received: by mail-wr0-x243.google.com with SMTP id v60-v6so50362877wrc.7 for ; Tue, 24 Apr 2018 08:24:12 -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=Aq3BXwNARx25ztby3oO9Dmi8umjh3lGwzXi+DBjplmo=; b=CZR5pGxBSRZaI/D+cAhsDSRkxgeKXa1YhDZdv5UojoGzj8g/AEQ6r6KzZQe8P2wea5 EpX9wJL77N/XtzozrAX9qqOVAbwAM40dEbPQ8SOX2vkthkUU8e6gdGPoB58gLw+f8l4A QF/e4c698760aclDW99MZSpupQK5CU6J8Go7U= 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=Aq3BXwNARx25ztby3oO9Dmi8umjh3lGwzXi+DBjplmo=; b=Oo/o8dB4QzDERH24674mxOo+Dth82yYoG1XMSPqubiAgZZOp/tusGVOBA0waLKwwYO y4H7XEhy+68sYcy3FlawPvMOJvK0AkmTKGb3u12o+UtkVk4LwIrP5Cn5hYLBLkORZcJW 3BbuiBdH701htgfkDV4vug674dXUoHSJz9MMyGGM6U1cRyilfzu+MP0qt5TaSjRwzSpo TbI5OePAzt1ppiRpEkmn/lJwhAU7K8Sj2TAEbPjbrnYFvtZRhsVD9SC22T1J4NGE4/2H bU4QlUd3hx5mwQjr3aIcTforYYbhMNoV9dlNa40gQPpNGCUea7CC8WNDGudNxc/5xLnU Hl1g== X-Gm-Message-State: ALQs6tB7d+flOwk5N+RmBQp4FCY/zlUIkvERKqGChMhI7uVCRnhSJt1N NszBitxNOGSLN24SQBg8g4ixaA== X-Received: by 2002:adf:ba50:: with SMTP id t16-v6mr17590604wrg.237.1524583451919; Tue, 24 Apr 2018 08:24:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t46-v6sm16725666wrc.95.2018.04.24.08.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id D0EE33E0954; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, 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: Tue, 24 Apr 2018 16:23:25 +0100 Message-Id: <20180424152405.10304-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-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::243 Subject: [Qemu-devel] [PATCH v3 06/46] 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 282e1f1e2b..0100545695 100755 --- a/configure +++ b/configure @@ -1416,26 +1416,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" @@ -1456,7 +1468,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