mk: override HOSTCC when overriding CC
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 24 Jun 2014 00:23:03 +0000 (01:23 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 27 Jun 2014 00:30:57 +0000 (02:30 +0200)
commite9199e82fcd210a64d0c34ebcab78d714dc4b453
tree9152b5a915f5a26c0b5b0f3bde7b54fabe7cbaca
parentc3111b70b27e33dd37bb5807d11f19a65a8f45c2
mk: override HOSTCC when overriding CC

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.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
mk/toolchain/gcc/rte.vars.mk