mbox series

[bpf-next,v5,0/3] selftests/bpf: Use pkg-config to determine ld flags

Message ID 20231125084253.85025-1-akihiko.odaki@daynix.com (mailing list archive)
Headers show
Series selftests/bpf: Use pkg-config to determine ld flags | expand

Message

Akihiko Odaki Nov. 25, 2023, 8:42 a.m. UTC
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.

V4 -> V5: Introduced variables LIBELF_CFLAGS and LIBELF_LIBS.
          (Daniel Borkmann)
          Added patch "selftests/bpf: Choose pkg-config for the target".
V3 -> V4: Added "2> /dev/null".
V2 -> V3: Added missing "echo".
V1 -> V2: Implemented fallback, referring to HOSTPKG_CONFIG.

Akihiko Odaki (3):
  selftests/bpf: Choose pkg-config for the target
  selftests/bpf: Override PKG_CONFIG for static builds
  selftests/bpf: Use pkg-config for libelf

 tools/testing/selftests/bpf/Makefile   | 14 +++++++++-----
 tools/testing/selftests/bpf/README.rst |  2 +-
 2 files changed, 10 insertions(+), 6 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 29, 2023, 6:20 a.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Sat, 25 Nov 2023 17:42:49 +0900 you 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.
> 
> V4 -> V5: Introduced variables LIBELF_CFLAGS and LIBELF_LIBS.
>           (Daniel Borkmann)
>           Added patch "selftests/bpf: Choose pkg-config for the target".
> V3 -> V4: Added "2> /dev/null".
> V2 -> V3: Added missing "echo".
> V1 -> V2: Implemented fallback, referring to HOSTPKG_CONFIG.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v5,1/3] selftests/bpf: Choose pkg-config for the target
    https://git.kernel.org/bpf/bpf-next/c/2ce344b68916
  - [bpf-next,v5,2/3] selftests/bpf: Override PKG_CONFIG for static builds
    https://git.kernel.org/bpf/bpf-next/c/18f6f9de98d1
  - [bpf-next,v5,3/3] selftests/bpf: Use pkg-config for libelf
    https://git.kernel.org/bpf/bpf-next/c/8998a479fd96

You are awesome, thank you!