diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2022-05-19 01:53:49 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2022-05-19 02:36:48 +0300 |
commit | f64bd4b6cef3b9a57f26928c1b8932534695cb72 (patch) | |
tree | 795995ca54ef7007d8dc0f1fbc14db01a3227f0a /Makefile | |
parent | 16e9ccd5fa39f3a32bca65831a881d9376d921bd (diff) | |
download | upstream-f64bd4b6cef3b9a57f26928c1b8932534695cb72.tar.gz upstream-f64bd4b6cef3b9a57f26928c1b8932534695cb72.tar.bz2 upstream-f64bd4b6cef3b9a57f26928c1b8932534695cb72.zip |
tools/elfutils: only build required components
Building all of the components results in strip being installed in
staging_dir/host/bin. This strip binary will take precedence over
binutils strip that is installed in the toolchain directory.
This will not work on host systems that do not have libdw installed, as
we do not set HOST_LDFLAGS to override rpath to staging_dir/host/lib.
However, rather than overriding rpath, we should just avoid using
elfutils strip entirely.
Override the SUBDIRS variable in the Makefile to only build and install
the libraries we require for dwarves and frr.
Fixes the following build failure in toolchain/gdb:
strip: error while loading shared libraries: libdw.so.1: cannot open shared object file: No such file or directory
Fixes: ad79b9271949 ("elfutils: move host build to tools")
Reported-by: Dominick Grift <dominick.grift@defensec.nl>
Reported-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions