On Tue, Nov 10, 2020 at 8:44 AM Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx> wrote: > > When cross building runqslower for an other architecture, the > intermediate bpftool used to generate a skeleton must be built using the > host toolchain. Pass HOSTCC and HOSTLD, defined in Makefile.include, to > the bpftool Makefile. > > Signed-off-by: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx> > --- Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > tools/bpf/runqslower/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/bpf/runqslower/Makefile b/tools/bpf/runqslower/Makefile > index 0fc4d4046193..4d5ca54fcd4c 100644 > --- a/tools/bpf/runqslower/Makefile > +++ b/tools/bpf/runqslower/Makefile > @@ -80,4 +80,5 @@ $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(BPFOBJ_OU > $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(BPFOBJ_OUTPUT) $@ > > $(DEFAULT_BPFTOOL): | $(BPFTOOL_OUTPUT) > - $(Q)$(MAKE) $(submake_extras) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT) > + $(Q)$(MAKE) $(submake_extras) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT) \ > + CC=$(HOSTCC) LD=$(HOSTLD) > -- > 2.29.1 >