From patchwork Thu Apr 28 09:48:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 8967471 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4C2E19F1C1 for ; Thu, 28 Apr 2016 09:51:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7FDA62022A for ; Thu, 28 Apr 2016 09:50:59 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9C872011B for ; Thu, 28 Apr 2016 09:50:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aviZG-00051T-7M; Thu, 28 Apr 2016 09:49:06 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aviZE-00050R-UC for xen-devel@lists.xenproject.org; Thu, 28 Apr 2016 09:49:05 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id 40/2E-07924-09CD1275; Thu, 28 Apr 2016 09:49:04 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRWlGSWpSXmKPExsXitHRDpG7/HcV wg6nPbCy+b5nM5MDocfjDFZYAxijWzLyk/IoE1owV01+xFJxmqXi3cy57A+Nz5i5GTg4JAX+J Nz17GEFsNgEdiYtzd7J1MXJwiAioSNzeawBiMgtoSSxZKQVSISwQIXHhwCwmEJtFQFXiz793b CA2r4CLxLUjP9ggJupKnNy9iR0iLihxcuYTFhCbWUBTonX7b3YIW16ieetssAuEBBQl+uc9AN sqIcAt8bfbfgIj7ywk3bOQdM9C0r2AkXkVo0ZxalFZapGuoZleUlFmekZJbmJmjq6hgbFebmp xcWJ6ak5iUrFecn7uJkZgODEAwQ7GVds9DzFKcjApifJ2HVIMF+JLyk+pzEgszogvKs1JLT7E KMPBoSTBy38bKCdYlJqeWpGWmQMMbJi0BAePkghvwi2gNG9xQWJucWY6ROoUoy7Hgh+31zIJs eTl56VKifOuAykSACnKKM2DGwGLskuMslLCvIxARwnxFKQW5WaWoMq/YhTnYFQS5l0BMoUnM6 8EbtMroCOYgI4Q2AR2REkiQkqqgXEqy9erk7xZX6oIP+p6elr+4p16dsPrtRXGhofffW3bErh dRuV3vv//a1qZVqcnr2RvKOQ+G2Fj03YiV+iCxKwl7y+cZPlx+eG1bWmiIedZe/RWWlkpqNez pF8rvOL75f/ZJb+/rHQLXdj7mYtr26QFR90eX4gpmv6WS880bm7+Yf6Zsim3YicqsRRnJBpqM RcVJwIA7AWMNK0CAAA= X-Env-Sender: prvs=919cbf1eb=roger.pau@citrix.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1461836942!5816658!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3592 invoked from network); 28 Apr 2016 09:49:03 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 28 Apr 2016 09:49:03 -0000 X-IronPort-AV: E=Sophos;i="5.24,546,1454976000"; d="scan'208";a="350389179" From: Roger Pau Monne To: Date: Thu, 28 Apr 2016 11:48:58 +0200 Message-ID: <1461836938-26008-1-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.6.4 (Apple Git-63) MIME-Version: 1.0 X-DLP: MIA1 Cc: Roger Pau Monne Subject: [Xen-devel] [PATCH for-4.7] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Roger Pau Monné Acked-by: Jan Beulich --- Config.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Config.mk b/Config.mk index 9b097c9..67b26dd 100644 --- a/Config.mk +++ b/Config.mk @@ -45,6 +45,12 @@ DESTDIR ?= / # Allow phony attribute to be listed as dependency rather than fake target .PHONY: .phony +# If we are not cross-compiling, use C{C/XX} as HOSTC{C/XX} +ifeq ($(XEN_TARGET_ARCH), $(XEN_COMPILE_ARCH)) +HOSTCC ?= $(CC) +HOSTCXX ?= $(CXX) +endif + # Use Clang/LLVM instead of GCC? clang ?= n ifeq ($(clang),n)