381616e77a
Currently, when we need to do a conditional on the type of C library used, we need to take into account the three toolchain backends. As we are going to add eglibc support to the Buildroot toolchain backend, it would become even uglier, so this patch introduces two new hidden options: BR2_TOOLCHAIN_USES_UCLIBC and BR2_TOOLCHAIN_USES_GLIBC, that exist regardless of the toolchain backend. The entire Buildroot code base is converted to use those options. Note that we have intentionally created only one option (BR2_TOOLCHAIN_USES_GLIBC) for both glibc and eglibc, since they are essentially the same, as far as Buildroot is concerned. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# elfutils
|
|
#
|
|
################################################################################
|
|
|
|
ELFUTILS_VERSION = 0.155
|
|
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
|
ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION)
|
|
ELFUTILS_LICENSE = GPLv3 GPLv2 LGPLv3
|
|
ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3
|
|
|
|
# The tarball does not have a generated configure script
|
|
ELFUTILS_AUTORECONF = YES
|
|
ELFUTILS_CONF_OPT += --disable-werror
|
|
ELFUTILS_PATCH = \
|
|
elfutils-portability.patch \
|
|
elfutils-robustify.patch
|
|
|
|
ELFUTILS_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
|
# elfutils gets confused when lfs mode is forced, so don't
|
|
ELFUTILS_CONF_ENV += \
|
|
CFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))" \
|
|
CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))"
|
|
endif
|
|
|
|
ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
# Unconditionnally requires gettext.
|
|
ifeq ($(BR2_NEEDS_GETTEXT),y)
|
|
ELFUTILS_DEPENDENCIES += gettext
|
|
ELFUTILS_LDFLAGS += -lintl
|
|
endif
|
|
|
|
ELFUTILS_CONF_ENV += \
|
|
LDFLAGS="$(ELFUTILS_LDFLAGS)"
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
|
ELFUTILS_DEPENDENCIES += argp-standalone
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
ELFUTILS_DEPENDENCIES += zlib
|
|
ELFUTILS_CONF_OPT += --with-zlib
|
|
else
|
|
ELFUTILS_CONF_OPT += --without-zlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
ELFUTILS_DEPENDENCIES += bzip2
|
|
ELFUTILS_CONF_OPT += --with-bzlib
|
|
else
|
|
ELFUTILS_CONF_OPT += --without-bzlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
ELFUTILS_DEPENDENCIES += xz
|
|
ELFUTILS_CONF_OPT += --with-lzma
|
|
else
|
|
ELFUTILS_CONF_OPT += --without-lzma
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y)
|
|
ELFUTILS_CONF_OPT += --enable-progs
|
|
else
|
|
ELFUTILS_CONF_OPT += --disable-progs
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|