From 72f39d48bedf044e202fd51fecf3e2218fc2ae66 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sun, 25 Mar 2018 15:03:28 -0400 Subject: Makefile: Add HOSTCC Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Message-Id: <489fd750574cf761c1f083eaa7d2306e41035004.1522004432.git.crobinso@redhat.com> Signed-off-by: Paolo Bonzini --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 970b0ff..c8cb92b 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ ASFLAGS += -DBUILD_USER="$(BUILD_USER)" LDSCRIPT := rom16.ld LDFLAGS := -T $(LDSCRIPT) -nostdlib OBJCOPY := objcopy +HOSTCC := $(CC) ASRCS = sgabios.S @@ -55,7 +56,7 @@ sgabios.elf: .depend $(OBJS) $(LDSCRIPT) csum8 $(LD) $(LDFLAGS) $(OBJS) -o $@ csum8: csum8.c - $(CC) -Wall -O2 -o $@ $< + $(HOSTCC) -Wall -O2 -o $@ $< sgabios.o: buildinfo -- cgit v1.1