From patchwork Thu Apr 19 13:58:24 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: 133767 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp677844ljf; Thu, 19 Apr 2018 07:06:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqHbcUqAYJzmZhGVeq87k+APpMceV4SOJf0gdCkW+1qzdiTRh85v7PW8TG4TwcxdhyDD3Ny X-Received: by 10.55.97.197 with SMTP id v188mr6101432qkb.134.1524146760696; Thu, 19 Apr 2018 07:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524146760; cv=none; d=google.com; s=arc-20160816; b=sx+4DWDFSSZOhxtiEO2U88Vez8oOYBJu+SAKNIpqMDAe4NtUONec816P0IDUlCc8Ea +nC5fu/c7NgDFAAKcxz6HTRFDDnHXWLMLaMf7qS1nCSvaOzhPeeT1B8/SwF9m9qA2/3a l0yBvXP/aATrPaZzAYmPrEEg6weB0NvJdcUfRYEQ3thUQ4ifNzIIzET5RjPrHu2qsquv SsQZxqybSlO9cu3LAMC2bRep+3cecYsAeqDMUXoB+W413/QsteMH/LGkQzVTGPpcS70N iAEZE2K/jVQCxXSe3mSbxCsyRWfZDgG9U30BllTwAU6vsgB3VeW3axPuxYQ58FWrpv9n RVUQ== 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=V4loadEfQMPlIQOyz24KJ4T6ib1kKhegaW4NwHGkGiM=; b=dEJeZ/Oqcqv3pWrxgTRRnLvb1J2KbnRXKxr+BA9RbVQyp/MJqwB6IVFS/YWrjEaAdE 2cdVJKgPxanISafLsRbUrtlFZ+9Qc2GxCggJpdL20dyo1hQCLG/G/tnXqaXMoVR7sKR7 ZS/ENWK7AHMoIfHV/jnJPlN46eXrE7CW7+rMANVeUxALfdidhkIZjrop+ycPjZTC9fx6 O8yFr8/09JPhXhDEtUSPVB51nH6i5Q8vlt68LduhIMDz1ap0hQlLSssn4r4sk4s40HON QwVkI1iBSOrFbo5iXj4ycp4FqQusFwHW1ZHtFByyXYuzgQckVWUd6rIM5TjylGL5Ofpw VMBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jZpVScVL; 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 y44si420303qve.41.2018.04.19.07.06.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:06:00 -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=jZpVScVL; 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]:49844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9ACG-00037E-43 for patch@linaro.org; Thu, 19 Apr 2018 10:06:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9A5f-0005x5-3Z for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9A5d-00028G-Vw for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:11 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:37484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9A5d-00027P-O8 for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:09 -0400 Received: by mail-wr0-x242.google.com with SMTP id f14-v6so14349860wre.4 for ; Thu, 19 Apr 2018 06:59:09 -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=V4loadEfQMPlIQOyz24KJ4T6ib1kKhegaW4NwHGkGiM=; b=jZpVScVLCk/9qmp25ZqblNDn4xxZibzybZGVTYyc84GH2ksbl8cq8Gc8/egOL4ibDB uOr+QZ5JgNoniDjP9QGanvZR9+PjMvQJYNPhoN9fKt1lHOlOgRf7mquxutfQJMI7XhSH b49hGFBHsNZlnnshRu/tt4fSD+FKiY9aokKV0= 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=V4loadEfQMPlIQOyz24KJ4T6ib1kKhegaW4NwHGkGiM=; b=sw+H2dR044GxZljA8csVWzA1DrtTjmL38GMgALu2svLLtyFwamJv5LwXuGOWGFbnKL fPOHd2Q6acVqjiOsxbWgo0p/LCeS3O2J94OKG3X8YKe5LO4IulU2rPInYme3i4hrMeOX JbyM+sTw5aipvT59qWq9MqHnE91e3UULHnpsgOCtMkhpQH3WAUXkpkolU/Jh4k2k7gpn OzX7B2zP+SJWjp9EIv0XN61ysacT3jY42FfLUxb96AotJinP1VeFRTBv3e1QEdBaNVuH WynCwQh7Fc+xsUvNSSJdDexliF0TlbrK635edz/GcZP+mGsW2YNidpa9lTeCFR3AMjN1 Zbiw== X-Gm-Message-State: ALQs6tDao6tkWd87MDYpOhuZXwPI684b4X3J8k1wSG3mSKJ3/IOl12VX TrNkyRVk8ZwpsbEK77DQxbZp4g== X-Received: by 2002:adf:9205:: with SMTP id 5-v6mr5042971wrj.282.1524146348556; Thu, 19 Apr 2018 06:59:08 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y42-v6sm7799877wry.21.2018.04.19.06.59.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:59:06 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id F31B23E0321; Thu, 19 Apr 2018 14:59:01 +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: Thu, 19 Apr 2018 14:58:24 +0100 Message-Id: <20180419135901.30035-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-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::242 Subject: [Qemu-devel] [PATCH v2 06/43] 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 --- configure | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/configure b/configure index 29af33716d..44d310a692 100755 --- a/configure +++ b/configure @@ -1416,30 +1416,44 @@ 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" LDFLAGS="-m32 $LDFLAGS" + cross_cc_i386=$cc + cross_cc_cflags_i386=$CPU_CFLAGS ;; x86_64) # ??? Only extremely old AMD cpus do not have cmpxchg16b. @@ -1454,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