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: 139455 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1675537lji; Wed, 20 Jun 2018 23:32:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK/JeL+zFG5/vr5yyl6OjyesqQTrnATH6wwiefLgyxNas8dn/4bb4LATXAJpGry5L7st6s0 X-Received: by 2002:a0c:d175:: with SMTP id c50-v6mr21068303qvh.1.1529562764835; Wed, 20 Jun 2018 23:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529562764; cv=none; d=google.com; s=arc-20160816; b=YWQuCrAlxAXUQ8qW3woVy4PfQMfEql2+FdsZ7eDqv5E3po0wMqgnmtarrWXMmTW+LY JXa04uCdDDFAV3ZNiydMO2l/PG7L1hCFIUxIiYWgvbvB6R9F3/uFI8Bk9pG3/k4Tyzx2 MzKaebTPQHwwV2s8J6e1wWHU4XlD66/kSPltzwkybUbtIGi4wizw/1f7BfohEQFgJq+U RolrNO5adn4hyq9phYyosB9gqZ8qpppOtDSTcfVq8z0zCrrTzI9AbT5Logvqv7pyxj6X udS9Aaq9Qd1sm6ebmbHBMa0vz20QjMpx2//iCEhsa4hz/sBFmv/HNhf6HD2ydZxvfg6K 9yXg== 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=TP404/dK/Y+c38x+bh/3v2MnQyJL0sMzw8E4CJpv2rA=; b=DXDsL/fMF5RcN+Rd0yGuWWDQ0/70xlg1zrQD4OMSj9d3myMgYKzxBqlOZi6tUCaAHx alD1IkdbBOIOHBW4OS3YJ3ghvqo/apAJfUSUqionM7KtsODnziJPYpn3AnRj1s80huIL B51yaUb+AkJK17cBWjNgA5VwdfMdM5GAcy3D2bQJy+oojGc9x3mNUpZVUWB/7blCsqPa qnPecR4J3gOE0H79X8IkRSF5Et7a3SlSwKknJF9yGZZvl+JSK0mhjaoA9158EQ++wsEL R2z/CKAwOYwq9r3YM9sc5g1b6cGDMX3ZDk0K8PVTTGSM7i/uvTx09sT4nSu657iGZY4h o43Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Umm6VXHy; 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 64-v6si1269272qkd.123.2018.06.20.23.32.44 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 20 Jun 2018 23:32:44 -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=Umm6VXHy; 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]:53271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVt97-0005sV-Ed for patch@linaro.org; Thu, 21 Jun 2018 02:32:44 -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-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+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 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