From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 1/2] mk: overriding CC also overrides HOSTCC Date: Tue, 24 Jun 2014 11:38:57 +0200 Message-ID: <3326698.g5GoIMb4bc@xps13> References: <1403569384-16758-1-git-send-email-bruce.richardson@intel.com> <1403569384-16758-2-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Bruce Richardson Return-path: In-Reply-To: <1403569384-16758-2-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Bruce, 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 overrides > HOSTCC when CC is overridden, which means that setting CC=gcc48, will > now also set HOSTCC=gcc48, allowing the "testhost" app to compile on BSD10 So you are mixing CC and HOSTCC which would break cross-compilation. Why don't you set HOSTCC on command line? -- Thomas