8e6c06fb11
elfutils uses the argp family of functions, that isn't available in uClibc. So, we add a dependency on argp-standalone if building with uClibc, and modify elfutils source code to link against argp if needed. Heavily based from work done by Stefan Fröberg, but with many further modifications by Thomas Petazzoni. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
33 lines
899 B
Plaintext
33 lines
899 B
Plaintext
comment "elfutils requires a glibc toolchain"
|
|
depends on !(BR2_TOOLCHAIN_EXTERNAL_GLIBC || \
|
|
BR2_TOOLCHAIN_CTNG_glibc || \
|
|
BR2_TOOLCHAIN_CTNG_eglibc)
|
|
|
|
config BR2_PACKAGE_ELFUTILS
|
|
bool "elfutils"
|
|
depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || \
|
|
BR2_TOOLCHAIN_CTNG_glibc || \
|
|
BR2_TOOLCHAIN_CTNG_eglibc
|
|
select BR2_PACKAGE_ARGP_STANDALONE if \
|
|
BR2_TOOLCHAIN_BUILDROOT || \
|
|
BR2_TOOLCHAIN_CTNG_uClibc || \
|
|
BR2_TOOLCHAIN_EXTERNAL_UCLIBC
|
|
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://fedorahosted.org/elfutils
|
|
|
|
if BR2_PACKAGE_ELFUTILS
|
|
|
|
config BR2_PACKAGE_ELFUTILS_PROGS
|
|
bool "Install programs"
|
|
help
|
|
This option tells elfutils to not only install the libelf
|
|
libraries, but also the elfutils programs.
|
|
|
|
endif
|