Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): include libbpf during libbpfgo compilation #450

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

rscampos
Copy link
Collaborator

An issue appears when we try to compile libbpfgo on an older kernel that doesn't have the XDP_FLAGS_REPLACE defined in
/usr/include/linux/if_link.h. To overcome this, it is necessary to include the directory of libbpf under 3rdparty during the compilation, since install_uapi_headers doesn't install if_link.h.

@rscampos rscampos requested a review from geyslan July 12, 2024 20:27
@rscampos rscampos self-assigned this Jul 12, 2024
@rscampos rscampos force-pushed the fix_build_process_libbpf branch from ffe4d10 to 982c689 Compare July 12, 2024 20:29
An issue appears when we try to compile libbpfgo on an older kernel that
doesn't have the XDP_FLAGS_REPLACE defined in
/usr/include/linux/if_link.h. To overcome this, it is necessary to
include the directory of libbpf under 3rdparty during the compilation,
since install_uapi_headers doesn't install if_link.h.
@rscampos rscampos force-pushed the fix_build_process_libbpf branch from 982c689 to 7c6fd04 Compare July 15, 2024 14:22
Copy link
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rscampos rscampos merged commit c8f76d1 into aquasecurity:main Jul 15, 2024
17 checks passed
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