package/elfutils: fix build with musl-fts

Drop second patch and renumber the rest. Add explicit dependency on
musl-fts and link with it.

Fixes:
 - http://autobuild.buildroot.org/results/3f20ae917fde9d95eb061b779a5992db91355a57

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2019-10-12 15:49:16 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent bc35688239
commit 99ce85cdb8
6 changed files with 6 additions and 1332 deletions

View File

@ -10,6 +10,7 @@ config BR2_PACKAGE_ELFUTILS
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_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
help
Libraries/utilities to handle ELF objects (drop in
replacement for libelf).

View File

@ -43,6 +43,11 @@ ELFUTILS_CONF_ENV += \
ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \
$(TARGET_NLS_LIBS)
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
ELFUTILS_DEPENDENCIES += musl-fts
ELFUTILS_LDFLAGS += -lfts
endif
ELFUTILS_CONF_ENV += \
LDFLAGS="$(ELFUTILS_LDFLAGS)"