From nobody Wed Feb 11 08:38:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 152846299681844.21386838131468; Fri, 8 Jun 2018 06:03:16 -0700 (PDT) Received: from localhost ([::1]:35521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRH2y-0000ae-3I for importer@patchew.org; Fri, 08 Jun 2018 09:03:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRGZt-00018B-KJ for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRGZs-0006Aq-P4 for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:33:13 -0400 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:33494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRGZs-0006AA-HT for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:33:12 -0400 Received: by mail-wr0-x22b.google.com with SMTP id k16-v6so13245318wro.0 for ; Fri, 08 Jun 2018 05:33:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 203-v6sm2443105wmp.23.2018.06.08.05.33.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 05:33:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 647913E029D; Fri, 8 Jun 2018 13:33:07 +0100 (BST) 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=m78qURr3GMLdx7mubzdT4QHWcQU34YkVz0XxXj7SwU4=; b=Yjn0UtHbgphpMwpwbLxjuvHVr3YSoS+g7xOssqEZ1KMokxI9rfQIZz+JyHDHJYYckU n5SJG4HVdq2BwUMQkCK0FQ/IqjUAlYMln/oYMabYTP8Y1HLjRbsT2Xp1RtcKhG0iuHeu 8wYYqSIXHzOUkaIhOUJCytLTUu89MOYIZKxcA= 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=m78qURr3GMLdx7mubzdT4QHWcQU34YkVz0XxXj7SwU4=; b=reqkcf6jCkl54EasSzlW6OWYOY7oHFDNbRZkO0qkSR1/vffjDBPkjBhqQ5/n5ndnXh veF4Pp2eMVzvSYasA9+2KUbaZ40h/s+OJBjT6iQv/PD9HvDuhdJr2OVrazbG8Q7h/NO2 6ba6xBVpEz30NKOspHSkL74C8p2aVeDwOeHX3xVQ59NidNOUUHp1GqNoP9BKmkdmzO1B IFqHJTw9L+oNEPDE2Rcnwz4gL27scNEafhqYHC42RJE/QM3/0kzyjtkiHNBuskoLoalb umQhKOXeBEEgejtWF3HNoitQ8bDodWAVm43k2Lsd7g4fIZVZdhanECD5dBPn6nrxCkVV nCSQ== X-Gm-Message-State: APt69E3seaa3e7XvtvjLlICVVkUkMDTaSVW1X3Akib3Wq9Pt9Qh2zbBn BQFJoN+5E8w/KPo62vZpj+ftyQ== X-Google-Smtp-Source: ADUXVKK+ykJkstPVFFPW1BzrUxEusK/FsqJ5DeYXFd1A6cZBM/f490EoE5+93Vvr1+jhJSmZePKGGA== X-Received: by 2002:adf:a645:: with SMTP id k63-v6mr5250302wrc.231.1528461191465; Fri, 08 Jun 2018 05:33:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=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, pbonzini@redhat.com, stefanha@redhat.com, stefanb@linux.vnet.ibm.com, marcandre.lureau@redhat.com Date: Fri, 8 Jun 2018 13:32:22 +0100 Message-Id: <20180608123307.24773-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180608123307.24773-1-alex.bennee@linaro.org> References: <20180608123307.24773-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22b Subject: [Qemu-devel] [PATCH v6 04/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=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 We can build tests for the host system with the compiler that we have selected. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson --- configure | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2d6e095196..b374868eab 100755 --- a/configure +++ b/configure @@ -1431,26 +1431,38 @@ case "$cpu" in ppc) CPU_CFLAGS=3D"-m32" LDFLAGS=3D"-m32 $LDFLAGS" + cross_cc_powerpc=3D$cc + cross_cc_cflags_powerpc=3D$CPU_CFLAGS ;; ppc64) CPU_CFLAGS=3D"-m64" LDFLAGS=3D"-m64 $LDFLAGS" + cross_cc_ppc64=3D$cc + cross_cc_cflags_ppc64=3D$CPU_CFLAGS ;; sparc) CPU_CFLAGS=3D"-m32 -mv8plus -mcpu=3Dultrasparc" LDFLAGS=3D"-m32 -mv8plus $LDFLAGS" + cross_cc_sparc=3D$cc + cross_cc_cflags_sparc=3D$CPU_CFLAGS ;; sparc64) CPU_CFLAGS=3D"-m64 -mcpu=3Dultrasparc" LDFLAGS=3D"-m64 $LDFLAGS" + cross_cc_sparc64=3D$cc + cross_cc_cflags_sparc64=3D$CPU_CFLAGS ;; s390) CPU_CFLAGS=3D"-m31" LDFLAGS=3D"-m31 $LDFLAGS" + cross_cc_s390=3D$cc + cross_cc_cflags_s390=3D$CPU_CFLAGS ;; s390x) CPU_CFLAGS=3D"-m64" LDFLAGS=3D"-m64 $LDFLAGS" + cross_cc_s390x=3D$cc + cross_cc_cflags_s390x=3D$CPU_CFLAGS ;; i386) CPU_CFLAGS=3D"-m32" @@ -1471,7 +1483,7 @@ case "$cpu" in CPU_CFLAGS=3D"-mx32" LDFLAGS=3D"-mx32 $LDFLAGS" cross_cc_i386=3D$cc - cross_cc_cflags_i386=3D"-m32" + cross_cc_cflags_i386=3D$CPU_CFLAGS ;; # No special flags required for other host CPUs esac --=20 2.17.1