Skip to content

Check PKG_CONFIG for pkg-config executable#145

Merged
alexforster merged 1 commit intolibbpf:masterfrom
kxxt:pkg_config_env
Mar 13, 2026
Merged

Check PKG_CONFIG for pkg-config executable#145
alexforster merged 1 commit intolibbpf:masterfrom
kxxt:pkg_config_env

Conversation

@kxxt
Copy link
Contributor

@kxxt kxxt commented Mar 13, 2026

When doing cross-compilation in some environments (e.g. NixOS pkgsCross), the name of the pkg-config executable is aarch64-unknown-linux-gnu-pkg-config.

Consult the PKG_CONFIG environment variable for the pkg-config executable before checking the presence of pkg-config binary.

Note: the diff on line 249 is introduced by cargo +nightly fmt.

When doing cross-compilation in some environments (e.g. NixOS
pkgsCross), the name of the pkg-config executable is
aarch64-unknown-linux-gnu-pkg-config.

Consult the PKG_CONFIG environment variable for the pkg-config
executable before checking the presence of pkg-config binary.
@alexforster alexforster merged commit 3946776 into libbpf:master Mar 13, 2026
11 checks passed
@alexforster alexforster self-assigned this Mar 13, 2026
@alexforster
Copy link
Member

Deployed as v1.6.4+v1.6.3 – thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants