[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] x86emul: inherit HOSTCC when building 32-bit harness on 64-bit host

commit 5b6a3c67cd7c3834235eb17a82c98ad0ee384017
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Fri Apr 3 10:55:12 2020 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Apr 3 10:55:12 2020 +0200

    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@xxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
 tools/tests/x86_emulator/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tests/x86_emulator/Makefile 
index 222c1b11e2..7ce882cb78 100644
--- a/tools/tests/x86_emulator/Makefile
+++ b/tools/tests/x86_emulator/Makefile
@@ -268,7 +268,7 @@ install uninstall:
 ifeq ($(XEN_COMPILE_ARCH),x86_64)
 run32: $(addsuffix .h,$(TESTCASES)) $(addsuffix -opmask.h,$(OPMASK))
 run32 clean32: %32:
-       $(MAKE) -C 32 $*
+       $(MAKE) -C 32 HOSTCC=$(HOSTCC) $*
 clean: clean32
 run32 clean32: %32: %
generated by git-patchbot for /home/xen/git/xen.git#staging

Xen-changelog mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.