libbpf / bpftool

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

mirror: Define PACKAGE at build time when trying to detect libbfd #169

Closed qmonnet closed 1 month ago

qmonnet commented 1 month ago

Feature detection from the Makefile.feature for libbfd (with the different variants of the probe) may fail on some systems where the bfd.h and dis-asm.h headers expect the PACKAGE or PACKAGE_VERSION macros to be defined. In the kernel tree, feature detection addresses it by defining the PACKAGE macro when invoking the compiler. Add a similar definition for the mirror repository.

Note that this issue has remained undetected for a while. This is because the bfd.h included in some distributions (Debian/Ubuntu, for example) does not contain the inclusion guard.

Fixes: #166 Fixes: #167