I probably should have added more context here... We carry this patch to sgabios in Fedora to enable cross compilation. It would be nice to get it into the qemu sgabios git repo so we don't have to track it downstream anymore
Thanks, Cole On 03/25/2018 03:03 PM, Cole Robinson wrote: > From: Paolo Bonzini <pbonz...@redhat.com> > > 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 > >