tools/libelf: remove unneeded host library
authorTony Ambardar <itugrok@yahoo.com>
Fri, 12 Mar 2021 01:45:05 +0000 (17:45 -0800)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sat, 13 Mar 2021 22:20:02 +0000 (22:20 +0000)
commitbf4aa0c6a2f57951f995b2ac6f394c45ac852b9d
tree80e67d10f722a32251a0e4fe2e065fbca9a2a497
parent29e2be69c4689f3438340f23a6eb5649516f0c6d
tools/libelf: remove unneeded host library

This old ELF library dating to 2009 used to be necessary on MacOS but
is not required for building the kernel or tools since [1]. On Linux
systems, libelf is already an OpenWRT build-system prerequisite [2].

Presence of the older library can mask or conflict with the system libelf
and lead to build errors, as seen compiling Linux kernels since v5.8 or
host tools such as dwarves (e.g. pahole).

Remove the unnecessary tools/libelf library and avoid the related issues.

[1] 5f8e587240 ("build: force disable stack validation during kernel build
                 on non-linux systems")
[2] https://openwrt.org/docs/guide-developer/build-system/install-buildsystem#prerequisites

Tested-by: Rosen Penev <rosenp@gmail.com> (Linux)
Tested-by: Georgi Valkov <gvalkov@abv.bg> (MacOS)
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
tools/Makefile
tools/libelf/Makefile [deleted file]
tools/libelf/patches/900-fix-undefined-macro-access.patch [deleted file]