x86emul: inherit HOSTCC when building 32-bit harness on 64-bit host
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Apr 2020 08:55:12 +0000 (10:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Apr 2020 08:55:12 +0000 (10:55 +0200)
commit5b6a3c67cd7c3834235eb17a82c98ad0ee384017
tree447b7f39707baafc1996b57e390b01cfad31fbc6
parentd5997399b7ade650a7c894bf848a7e9463ae80e7
x86emul: inherit HOSTCC when building 32-bit harness on 64-bit host

We're deliberately bringing XEN_COMPILE_ARCH and XEN_TARGET_ARCH out of
sync in this case, and hence HOSTCC won't get set from CC. Therefore
without this addition HOSTCC would not match a possible make command
line override of CC, but default to "gcc", likely causing the build to
fail for test_x86_emulator.c on systems with too old a gcc.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/Makefile