On 2023/10/16 20:39, Daniel Borkmann wrote:
On 10/15/23 3:39 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.
Is this not covered via -lz or is it that the name differs?
libelf may not only be linked with zlib but also with zstandard.
Anyway, this change breaks selftest build for BPF CI (see below), could
this
either be made optional or detected differently?
https://github.com/kernel-patches/bpf/actions/runs/6524480596/job/17716170021
I sent v2 (I forgot to add bpf-next to the subject for this).
This version implements a fallback just in the same way done for
HOSTPKG_CONFIG.