2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-06 06:22:43 +01:00
|
|
|
#
|
|
|
|
# elfutils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-01-06 06:22:43 +01:00
|
|
|
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
|
2014-09-27 21:32:44 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --disable-werror
|
2013-01-06 06:22:43 +01:00
|
|
|
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 += \
|
2014-10-25 20:29:31 +02:00
|
|
|
CFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))" \
|
|
|
|
CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))"
|
2013-01-06 06:22:43 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-06 06:22:52 +01:00
|
|
|
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)"
|
|
|
|
|
2013-06-30 21:29:09 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_DEPENDENCIES += argp-standalone
|
2013-01-06 06:22:49 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-06 06:22:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_DEPENDENCIES += zlib
|
|
|
|
ELFUTILS_CONF_OPTS += --with-zlib
|
2013-01-06 06:22:43 +01:00
|
|
|
else
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --without-zlib
|
2013-01-06 06:22:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_DEPENDENCIES += bzip2
|
|
|
|
ELFUTILS_CONF_OPTS += --with-bzlib
|
2013-01-06 06:22:43 +01:00
|
|
|
else
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --without-bzlib
|
2013-01-06 06:22:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_DEPENDENCIES += xz
|
|
|
|
ELFUTILS_CONF_OPTS += --with-lzma
|
2013-01-06 06:22:43 +01:00
|
|
|
else
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --without-lzma
|
2013-01-06 06:22:43 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-06 06:22:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y)
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --enable-progs
|
2013-01-06 06:22:44 +01:00
|
|
|
else
|
2014-10-23 10:43:37 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --disable-progs
|
2013-01-06 06:22:44 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-06 06:22:43 +01:00
|
|
|
$(eval $(autotools-package))
|