[dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Jun 24 11:38:57 CEST 2014


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


More information about the dev mailing list