Re: [PATCH v2] selftests/bpf: Use pkg-config to determine ld flags

From: Akihiko Odaki
Date: Mon Oct 16 2023 - 08:46:59 EST


On 2023/10/16 21:19, Daniel Borkmann wrote:
On 10/16/23 1:54 PM, Akihiko Odaki wrote:
When linking statically, libraries may require other dependencies to be
included to ld flags. In particular, libelf may require libzstd. Use
pkg-config to determine such dependencies.

Signed-off-by: Akihiko Odaki <akihiko.odaki@xxxxxxxxxx>
---
V1 -> V2: Implemented fallback, referring to HOSTPKG_CONFIG.

This still does not work with BPF CI, BPF selftest build fails again :

https://github.com/kernel-patches/bpf/actions/runs/6524480596/job/17716169959 :

I was so careless forgetting to put "echo". I have just sent v3.