Re: [PATCH v4 2/4] samples/bpf: Enable cross compiler support

From: Daniel Borkmann
Date: Wed Sep 20 2017 - 17:24:53 EST


On 09/20/2017 06:11 PM, Joel Fernandes wrote:
When cross compiling, bpf samples use HOSTCC for compiling the non-BPF part of
the sample, however what we really want is to use the cross compiler to build
for the cross target since that is what will load and run the BPF sample.
Detect this and compile samples correctly.

Acked-by: Alexei Starovoitov <ast@xxxxxxxxxx>
Signed-off-by: Joel Fernandes <joelaf@xxxxxxxxxx>

Acked-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>