From patchwork Thu May 17 17:46:35 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: 136166 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp236503lji; Thu, 17 May 2018 10:48:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq+/K63omrWxeQKLsCbbkC+FdORWQvAbfjvOZZ4yyD9GveLMzp0y1qk/pM4mf03z/AgojyF X-Received: by 2002:ac8:686:: with SMTP id f6-v6mr4765652qth.348.1526579284966; Thu, 17 May 2018 10:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526579284; cv=none; d=google.com; s=arc-20160816; b=skBOYel8ez2IyV52YnTF0tQQPvFL2Oz3tU2dryt7CDA1Rwk/wx4Bxzf05NDwMXsHqY c/UyoRpsI6fSDVCPEFh2KHXXgx9vlJDvJRBm/GlsZHGNu230KISLJ/TWyD782vIVHbZM mhPbsgXlqOTAbr06Ku89Kwr8rZs2X/6JxMlT+XVFAN3HCKtRvK/7DUeRHEXGJfMHkPzi TwsI80gFp58iQbnqR8QAnqEbg8A/14dbhFfzC52D/GRPRxS5sPp3wxdHo1LBY07IEUhS buwp6XD+KbqhtczrAnRogVTQhJGh+7aMb+m2tEysUFZfYvHQI1e1iapKYJ8fmjXjktVc n4pw== 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=xNJcB7tzFL4dr7IfTlzfIkKmoVfPZSnsoryXmt9IQOc=; b=wXmnfoBv+Y5YO9Fy2FzaGN5c9c1iQjjcIjubRcDj4cW7engwUEheAb9TPR7EKdJaFL QeDzfzZ0CNovG3ZJ0soaUBYsOTXyAgojlnumTSLW5E0aOLQ57OjPpfWv36uCIr7+FPiZ wIxXN0zp0P6uTXqtzAZRRGEI7HKBT7BfdZmpXhsgmJM45ePP8Jpk0dt2PZhVxr8V5MZQ YoVZzK+Zc5KgY/H4e+qfV9ggJgrxR0AnfB+1BRoUhh4Jo6GGARQrnweZY9X6kLcTX/tn cfBKosCF8pwkbaw3B8T6/Iuu8K08NmV/5VnXfw5XYPlOjkxCyiS0VmkmRwF7wUSLl00b vqlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FCTacwzB; 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 f13-v6si3249392qtf.75.2018.05.17.10.48.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 10:48:04 -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=FCTacwzB; 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]:38429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN0W-0006Gs-BV for patch@linaro.org; Thu, 17 May 2018 13:48:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJMzw-0006Eh-Am for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJMzv-0003SZ-Fp for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:28 -0400 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:33176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJMzv-0003S9-92 for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:27 -0400 Received: by mail-wr0-x22d.google.com with SMTP id o4-v6so6573336wrm.0 for ; Thu, 17 May 2018 10:47:27 -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=xNJcB7tzFL4dr7IfTlzfIkKmoVfPZSnsoryXmt9IQOc=; b=FCTacwzBeCvsOZY17xj+nA60aMizt8mSLSgA8R6zn72RTX5TXL46q/TB1H9t72Tskk ku+VilqjlUY8jXNCGd8E8/QgF9oLj6uLc0rj5Lq4XIe2oSocTqbSUoIbODPdzMw+emkG VwO63GM3GYX7ua0cgySPJ8zl0Cr5p/ONi4QfQ= 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=xNJcB7tzFL4dr7IfTlzfIkKmoVfPZSnsoryXmt9IQOc=; b=nzmu9Cn0auHYNquZwqoRULd1rI+ufj9WBRs/K0zzojftX53rqfZYSha9WHDlIvT8Rz 5br72x44EiE9Up8O8dH0PqfBDVemCgfRaljTurOQg6RdFcSQTbcfcGKzWJMThcARxKLE pH/1Rw6j9FDVXIcGSQmtPWRY1hCBFDy1ZhAi/mg6Zp+lTpmIxruD08Ux8t/VoeIFtkdF 4Usa+LAusNYzkR9lCph6bYY6WMOY79lRJVM3YJArukf948U86iFz36p+XXHuINW4op4y BMLwUE6VR+LzbwHMXVjryrc86A1Hfs3FbN6/Ew4C9vfS4YuxdDZJZPa4EUcuSzhLMVd4 KK4A== X-Gm-Message-State: ALKqPwe3/2o87rSb5adRX6subSh11FgFGjVpfBRX4kH284D2Qva42UsZ zJN7wxpyiJULwEe/X420u0YZlA== X-Received: by 2002:adf:86ed:: with SMTP id 42-v6mr5500179wry.158.1526579246118; Thu, 17 May 2018 10:47:26 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 44-v6sm12563109wrv.47.2018.05.17.10.47.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 10:47:22 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3DCF73E0D92; Thu, 17 May 2018 18:47:19 +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: Thu, 17 May 2018 18:46:35 +0100 Message-Id: <20180517174718.10107-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-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::22d Subject: [Qemu-devel] [PATCH v4 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 2c2f27b755..01b20355ca 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