Skip to content

Conversation

tohojo
Copy link
Member

@tohojo tohojo commented Mar 31, 2025

The configure script may add extra include directories to CFLAGS, but
these were not propagated to BPF_CFLAGS, which leads to build errors
when libbpf is in an unusual place. Add an explicit propagation of
any CFLAGS starting with -I to BPF_CFLAGS.

Fixes #496

The configure script may add extra include directories to CFLAGS, but
these were not propagated to BPF_CFLAGS, which leads to build errors
when libbpf is in an unusual place. Add an explicit propagation of
any CFLAGS starting with -I to BPF_CFLAGS.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
@tohojo tohojo merged commit d9217fa into main Apr 3, 2025
79 of 81 checks passed
@tohojo tohojo deleted the includes-bpf-cflags branch April 3, 2025 10:29
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.

pkg-config is used to find libbpf, but CFLAGS are not propagated to clang invocation
1 participant