mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
The 0.192 release of elfutils introduced the src/srcfiles.cxx program,
that lists all source files of a given ELF binary. As this is a C++
program, we need a toolchain that supports it.
Without it, the build system tries to use "no" as the CXX compiler,
resulting in the following errors :
/bin/sh: line 1: no: command not found
as can be seen here for example :
https://autobuild.buildroot.net/results/849/849221c794a469a423857a290db775d150b84900
Add a dependency to a CPP toolchain for the elfutils programs.
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 268d7ad180)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
comment "elfutils needs a toolchain w/ wchar, dynamic library, threads"
|
|
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|
|
|| !BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
config BR2_PACKAGE_ELFUTILS
|
|
bool "elfutils"
|
|
depends on BR2_USE_WCHAR
|
|
depends on !BR2_STATIC_LIBS
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
select BR2_PACKAGE_ZLIB
|
|
select BR2_PACKAGE_ARGP_STANDALONE if !BR2_TOOLCHAIN_USES_GLIBC
|
|
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
|
|
help
|
|
Libraries/utilities to handle ELF objects (drop in
|
|
replacement for libelf).
|
|
|
|
Note that this option only installs the libraries, and not
|
|
the programs.
|
|
|
|
https://sourceware.org/elfutils/
|
|
|
|
if BR2_PACKAGE_ELFUTILS
|
|
|
|
config BR2_PACKAGE_ELFUTILS_PROGS
|
|
bool "Install programs"
|
|
depends on BR2_TOOLCHAIN_USES_GLIBC
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
help
|
|
This option tells elfutils to not only install the libelf
|
|
libraries, but also the elfutils programs.
|
|
|
|
comment "elfutils programs needs a glibc toolchain w/ C++"
|
|
depends on !BR2_TOOLCHAIN_USES_GLIBC \
|
|
|| !BR2_INSTALL_LIBSTDCPP
|
|
|
|
endif
|