mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/elfutils: enable on musl
Buildroot commit eb60820c0a disabled
elfutils for musl toolchains in 2015. Current code builds fine with musl
so remove the exceptions.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
[yann.morin.1998@free.fr:
- move all libc-related conditional blocks together
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
d8bcff69fc
commit
bf9583a502
@@ -1,17 +1,14 @@
|
||||
comment "elfutils needs a uClibc or glibc toolchain w/ wchar, dynamic library, threads"
|
||||
comment "elfutils needs a toolchain w/ wchar, dynamic library, threads"
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|
||||
|| !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
|
||||
|| !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
|
||||
# Only glibc and uClibc implement the myriad of required GNUisms
|
||||
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC
|
||||
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
|
||||
|
||||
@@ -50,10 +50,14 @@ ELFUTILS_LDFLAGS += -latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
||||
ELFUTILS_DEPENDENCIES += musl-fts
|
||||
ELFUTILS_DEPENDENCIES += musl-fts argp-standalone
|
||||
ELFUTILS_LDFLAGS += -lfts
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
ELFUTILS_CONF_OPTS += --disable-symbol-versioning
|
||||
endif
|
||||
|
||||
# disable for now, needs "distro" support
|
||||
ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod
|
||||
HOST_ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod
|
||||
@@ -61,11 +65,6 @@ HOST_ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod
|
||||
ELFUTILS_CONF_ENV += \
|
||||
LDFLAGS="$(ELFUTILS_LDFLAGS)"
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
ELFUTILS_DEPENDENCIES += argp-standalone
|
||||
ELFUTILS_CONF_OPTS += --disable-symbol-versioning
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
ELFUTILS_CONF_OPTS += --enable-demangler
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user