Re: [PATCH v5 bpf-next 12/15] libbpf: add C/LDFLAGS to libbpf.so and test_libpf targets

From: Andrii Nakryiko
Date: Sat Oct 12 2019 - 12:38:24 EST


On Thu, Oct 10, 2019 at 5:29 PM Ivan Khoronzhuk
<ivan.khoronzhuk@xxxxxxxxxx> wrote:
>
> In case of C/LDFLAGS there is no way to pass them correctly to build
> command, for instance when --sysroot is used or external libraries
> are used, like -lelf, wich can be absent in toolchain. This can be
> used for samples/bpf cross-compiling allowing to get elf lib from
> sysroot.
>
> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxxxxxx>
> ---

Acked-by: Andrii Nakryiko <andriin@xxxxxx>

[...]