From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id AC27DB0AA for ; Tue, 24 Jun 2014 19:22:07 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 24 Jun 2014 10:22:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,539,1400050800"; d="scan'208";a="562642128" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga002.jf.intel.com with ESMTP; 24 Jun 2014 10:22:22 -0700 Received: from irsmsx151.ger.corp.intel.com (163.33.192.59) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 24 Jun 2014 18:22:22 +0100 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.31]) by IRSMSX151.ger.corp.intel.com ([163.33.192.59]) with mapi id 14.03.0123.003; Tue, 24 Jun 2014 18:22:22 +0100 From: "Richardson, Bruce" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC Thread-Index: AQHPj0KGbYVJKfCb8ECM9/LVVEWXZZt/8PSAgACOexA= Date: Tue, 24 Jun 2014 17:22:21 +0000 Message-ID: <59AF69C657FD0841A61C55336867B5B02CEE32E4@IRSMSX103.ger.corp.intel.com> References: <1403569384-16758-1-git-send-email-bruce.richardson@intel.com> <1403569384-16758-2-git-send-email-bruce.richardson@intel.com> <3326698.g5GoIMb4bc@xps13> In-Reply-To: <3326698.g5GoIMb4bc@xps13> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 17:22:08 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Tuesday, June 24, 2014 2:39 AM > To: Richardson, Bruce > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOST= CC >=20 > Hi Bruce, >=20 > 2014-06-24 01:23, Bruce Richardson: > > when overriding the CC variable on the commandline, the HOSTCC value > > was remaining at "gcc", which caused errors on Free BSD10 when using a = gcc > > as e.g. gcc48, without a binary just called "gcc". This change override= s > > HOSTCC when CC is overridden, which means that setting CC=3Dgcc48, will > > now also set HOSTCC=3Dgcc48, allowing the "testhost" app to compile on = BSD10 >=20 > So you are mixing CC and HOSTCC which would break cross-compilation. > Why don't you set HOSTCC on command line? >=20 Because I shouldn't need to set HOSTCC unless I am cross compiling and need= a different CC and HOSTCC. If my compiler is called "gcc48", and I tell th= e build system that my compiler is called "gcc48", it should use that value= everywhere in place of gcc, unless I also tell it that my HOSTCC should be= something completely different. This patch only affects HOSTCC if you spec= ify CC on the command-line to override that value, otherwise things are lef= t as they are.=20 If you do want to override CC and do cross compiling with a separate HOSTCC= that can be done too, by overriding HOSTCC also, i.e. CC=3Dx HOSTCC=3Dy. F= or those not cross compiling, they should never need to know about HOSTCC a= t all.