From patchwork Tue Jun 19 15:43:43 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: 139153 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5366857lji; Tue, 19 Jun 2018 08:46:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJZV73iqKMtgnlOknfn8DQjE5bDb4o/6C2CrWrj+87TPVkYE/HotsoX8a5aqtkcXblSAHtK X-Received: by 2002:a37:ef0d:: with SMTP id j13-v6mr14175070qkk.120.1529423186487; Tue, 19 Jun 2018 08:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529423186; cv=none; d=google.com; s=arc-20160816; b=KxTpPVuG7S4Ke+xaE/9ZjgcnW50SQFRPXXIqScFWG8oa1ujMP57kEqsVbwUZQ8d3IO JGTPf2K/KHHmZZDDPrT7CHwoPsIbp7QtsURT9LIIEmxMlnSEzl6mAnjE3fvA0bv0JLFI i/KMA9SV91exlFLJq6W0NuniNi+e/7i1ugR2VitjHrqha5D/0k1DS7ek/gxOFlTFmpl8 Pd1YLIYtDNVgb1q13T0rAeeuXnhaMZuN3beWKFgOCj35eqEeZWXsk6Fs3s675lZAqCd0 LWhBs/CiiPkkF5ZERPkataDU6AMHv0PulCpsW3RJOWuim6HpuexB8ewP92YixJGyZQFF pu8g== 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=nLYyHY5cnrQ4ej4B04HPYm6T5UydIYCTi8Xp0zB5Vpk=; b=pNmHL5Z4Si3xVgySn0jhPWcR9XoMZ7KknIvglgzsQ4zVu2tDm4YntVdS1TS7oCAlsF GnG8tIcns/Ny3oPQIBrg8f6HWQbTJnU93LTjYwGJhBbNCbmTQAfCXeHav1u2I0jF22G6 f+HONIsU2Hb+0W2hxLU18WrZWlisfQtq9+prrxbJQBh/fcwNpqXStHNyoqPe9TQnOFkc FVKZh5HHDOWJng+214sBqaP9SzrFJpO7ioR8IJ/0MaQ6Tth/yeNqsGqQO9gimm20t2Yi isJ/EKwI5zJFzwkDjAwa5uKEU9gCM1GUXnEkh9pZd/PNb+5xD+pTtTDXuBo4bI6GOHTB iMaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZvV7AYkb; 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 o59-v6si1920826qvo.281.2018.06.19.08.46.26 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Jun 2018 08:46:26 -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=ZvV7AYkb; 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]:43339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVIpu-0007dP-0T for patch@linaro.org; Tue, 19 Jun 2018 11:46:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVIoE-0006Uz-4Y for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVIoD-0006Kx-6c for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:42 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:50447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVIoD-0006KY-0l for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:41 -0400 Received: by mail-wm0-x231.google.com with SMTP id e16-v6so1190732wmd.0 for ; Tue, 19 Jun 2018 08:44:40 -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=nLYyHY5cnrQ4ej4B04HPYm6T5UydIYCTi8Xp0zB5Vpk=; b=ZvV7AYkbP9NB9hCqepRLq1c+7UwHv7XGLPEaVb6taQrv2xipYXESAdO6jL0Gb96ZjE jMqbzt9z65NGx7AzdQyNYrkDTNDjgiELf3YalsFkPO+sxgP97aigwmdvCGSQhQLPMHxE ol1k6nxJKOLOAPf6ZpsdFfVS+sQcMWml9J2tI= 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=nLYyHY5cnrQ4ej4B04HPYm6T5UydIYCTi8Xp0zB5Vpk=; b=YLRBprshLk69uJjAFh2psJcFhymhwTqIl0s4/cJN0uggBy+mM/Pp/Ee8dC19B91l1q qkILDtEJRm9sY3hPjDlMcB35vCoERLKid67+Vl9rLFB9PCHAKMfJb3RqRd8l1LFNLhHU XE6d7wYR/K33x9JZm9hTIfNJop4AGzeTKYTj6a4EEqJPmc4ewBqjj/io8o98YkL99wes hW/6JWtD5ePERZxPaLl8isKUQ/DJmdyAT2sicy47PvWCbZUeVWwkcVO3wREziHm/MDLq 3qI3uytElRJoqGummH8D3qY6NT1BFz8VlqMRx/P+jjs3KAxmPWeDphbF+9lpnRCDxDEH wnsQ== X-Gm-Message-State: APt69E2XrPfmtPhRA154uXlHT696I1ERWn4G+mDvbHAU5J85Zsj4Z+cg I3nAesruBwBO/hKFljgKcZ+28A== X-Received: by 2002:a1c:f014:: with SMTP id a20-v6mr11481121wmb.97.1529423079894; Tue, 19 Jun 2018 08:44:39 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id g205-v6sm428208wmg.43.2018.06.19.08.44.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 08:44:36 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C9A983E08BB; Tue, 19 Jun 2018 16:44:35 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 19 Jun 2018 16:43:43 +0100 Message-Id: <20180619154435.18898-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619154435.18898-1-alex.bennee@linaro.org> References: <20180619154435.18898-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:c09::231 Subject: [Qemu-devel] [PULL 04/56] 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: agraf@suse.de, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, f4bug@amsat.org, cota@braap.org, famz@redhat.com, aurelien@aurel32.net 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 -- 2.17.1 diff --git a/configure b/configure index b96017b423..069219e9ae 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