libbpf / bpftool

Automated upstream mirror for bpftool stand-alone build.
Other
411 stars 72 forks source link

Fix libbfd detection in GitHub mirror #167

Closed qmonnet closed 1 month ago

qmonnet commented 1 month ago

I also noticed there are several versions of bfd.h in the wild, I've a system with:

/* PR 14072: Ensure that config.h is included first.  */
#if !defined PACKAGE && !defined PACKAGE_VERSION
#error config.h must be included before this header
#endif

but this snippet is absent from /usr/include/bfd.h in Ubuntu, for example. I haven't been able to find where this has been removed so far, but it looks like a distro thing to me.

Let's add a -DPACKAGE='"bpftool"' to the feature detection on the mirror.

Originally posted by @qmonnet in https://github.com/libbpf/bpftool/issues/166#issuecomment-2407370671