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.
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
orPACKAGE_VERSION
macros to be defined. In the kernel tree, feature detection addresses it by defining thePACKAGE
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