From patchwork Thu Jun 21 06:25:13 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: 932553 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Umm6VXHy"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BBhy6BW9z9s0W for ; Thu, 21 Jun 2018 16:33:05 +1000 (AEST) Received: from localhost ([::1]:53271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVt9T-0005sV-4T for incoming@patchwork.ozlabs.org; Thu, 21 Jun 2018 02:33:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVt2r-0000tE-MY for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:26:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVt2q-0000a9-Gm for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:26:13 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:52325) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVt2q-0000ZM-9V for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:26:12 -0400 Received: by mail-wm0-x22a.google.com with SMTP id p126-v6so3122653wmb.2 for ; Wed, 20 Jun 2018 23:26: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=TP404/dK/Y+c38x+bh/3v2MnQyJL0sMzw8E4CJpv2rA=; b=Umm6VXHyzUkwEQ6VEVUya1tKlm9I3ETHh8+5PuDD5oK7aNZ2XINGrOae1BYPukkfkS 5WuG2/1eOsPiiTj9cl1CHFmeJnx4oDxtRqK/5sdh4TAQ9Xpk9HEAviCMRCx57URPNQXC Azut5LLuYxHGH2mbBTXNdhgygXsAPcG3RpPe4= 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=TP404/dK/Y+c38x+bh/3v2MnQyJL0sMzw8E4CJpv2rA=; b=RyiQDvzvMm8DQEtU3TacJOXunC5c1RWWB+g4Nchk/vvlsWbsu5hnxQD3h2QFujFZQq kJb3z/wuhlyyJWVfNEWzvPTU9rEUNUNR6Gvk3wyW8Pbgbr2GrxkcDvHUx0liVKBIKWaP 8kAibcXWjPDJf3CGjrJN7NdYQm1NOX0sQc68XNcddS7g87hxRe+sxcHAJWA+NEyU7dTc p8hnnI3qqOOKhySdNCCAiTgQyKjE77EatEItqhiMaRgar1yDwXY0EUcZbPK1Y5kgvNNV mSRvJQKjB+my4g7yOT1tVqq1BojTLRoEtGt4YKMwe5f4UPcqZx70LTqPXZ0G8WHKQsi+ 2C/g== X-Gm-Message-State: APt69E0hV+8Qf1U3kN0pRPqkv8DnHE/XULIeOeCeVoGCWV67P5Z4tz5n ALstYjOooUHmuGdeDtE45AHe8MmtoC4= X-Google-Smtp-Source: ADUXVKIR3KbCinc5xWs+1f39k6Aa3i8/OAYRxEzEQb554Z3/15pSqi3qxefllZ5GT4BpZ2FBZrSenQ== X-Received: by 2002:a1c:6584:: with SMTP id z126-v6mr4183644wmb.112.1529562371232; Wed, 20 Jun 2018 23:26:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b16-v6sm6477933wrm.15.2018.06.20.23.26.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 23:26:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id B14433E0866; Thu, 21 Jun 2018 07:26:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 21 Jun 2018 07:25:13 +0100 Message-Id: <20180621062605.941-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180621062605.941-1-alex.bennee@linaro.org> References: <20180621062605.941-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::22a Subject: [Qemu-devel] [PULL v2 05/57] 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+incoming=patchwork.ozlabs.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 diff --git a/configure b/configure index 259938e177..4d12cfbe3f 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