1comment "elfutils needs a toolchain w/ wchar, dynamic library, threads"
2	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
3		|| !BR2_TOOLCHAIN_HAS_THREADS
4
5config BR2_PACKAGE_ELFUTILS
6	bool "elfutils"
7	depends on BR2_USE_WCHAR
8	depends on !BR2_STATIC_LIBS
9	depends on BR2_TOOLCHAIN_HAS_THREADS
10	select BR2_PACKAGE_ZLIB
11	select BR2_PACKAGE_ARGP_STANDALONE if !BR2_TOOLCHAIN_USES_GLIBC
12	select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
13	help
14	  Libraries/utilities to handle ELF objects (drop in
15	  replacement for libelf).
16
17	  Note that this option only installs the libraries, and not
18	  the programs.
19
20	  https://sourceware.org/elfutils/
21
22if BR2_PACKAGE_ELFUTILS
23
24config BR2_PACKAGE_ELFUTILS_PROGS
25	bool "Install programs"
26	depends on BR2_TOOLCHAIN_USES_GLIBC
27	help
28	  This option tells elfutils to not only install the libelf
29	  libraries, but also the elfutils programs.
30
31endif
32