bc92e491f1
Download the portability patch into the buildroot tree. This isn't nice but there really isn't another good solution for it. The elfutils-portability.patch is version-dependent hence we already have an older version for an older version of elfutils in the mirrors. This causes hash check failures when fetching from sources.buildroot.net But we can't remove (hence replace) the old version with the new one since this would causee issues with older versions of buildroot/elfutils for the same scenario. Fixes: http://autobuild.buildroot.net/results/26a/26afb92dc14fd0f85c0800dd4e034ea86af19fe2/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# elfutils
|
|
#
|
|
################################################################################
|
|
|
|
ELFUTILS_VERSION = 0.160
|
|
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
|
ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION)
|
|
ELFUTILS_INSTALL_STAGING = YES
|
|
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_OPTS += --disable-werror
|
|
|
|
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_OPTS += --with-zlib
|
|
else
|
|
ELFUTILS_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
ELFUTILS_DEPENDENCIES += bzip2
|
|
ELFUTILS_CONF_OPTS += --with-bzlib
|
|
else
|
|
ELFUTILS_CONF_OPTS += --without-bzlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
ELFUTILS_DEPENDENCIES += xz
|
|
ELFUTILS_CONF_OPTS += --with-lzma
|
|
else
|
|
ELFUTILS_CONF_OPTS += --without-lzma
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y)
|
|
ELFUTILS_CONF_OPTS += --enable-progs
|
|
else
|
|
ELFUTILS_CONF_OPTS += --disable-progs
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|