When libelf headers and libs are not in standard locations, the check
fails and host flags are ignored.
I have encountered this issue when building linux into the buildroot
framework. host-* versions of libs may be compiled and installed in a
host staging dir removing the need to install them on the build system.
Comments are welcome.
Robin Jarry (2):
kbuild: introduce HOST_EXTRALDFLAGS
objtool: use host flags to detect if libelf is missing
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)