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
|
|
|
|
2016-06-17 16:48:29 +02:00
|
|
|
ELFUTILS_VERSION = 0.166
|
2013-01-06 06:22:43 +01:00
|
|
|
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
|
|
|
ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION)
|
2014-12-01 14:24:35 +01:00
|
|
|
ELFUTILS_INSTALL_STAGING = YES
|
2015-12-14 14:10:40 +01:00
|
|
|
ELFUTILS_LICENSE = GPLv3, GPLv2, LGPLv3
|
2013-01-06 06:22:43 +01:00
|
|
|
ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3
|
2016-06-17 16:48:29 +02:00
|
|
|
ELFUTILS_DEPENDENCIES = zlib
|
2013-01-06 06:22:43 +01:00
|
|
|
|
2016-06-17 16:48:30 +02:00
|
|
|
# We patch configure.ac
|
2013-01-06 06:22:43 +01:00
|
|
|
ELFUTILS_AUTORECONF = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --disable-werror
|
2013-01-06 06:22:43 +01:00
|
|
|
|
2016-06-18 18:43:26 +02:00
|
|
|
# elfutils gets confused when lfs mode is forced, so don't
|
|
|
|
ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
|
|
|
|
ELFUTILS_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))
|
|
|
|
|
2015-11-03 22:04:38 +01:00
|
|
|
# sparc64 needs -fPIC instead of -fpic
|
|
|
|
ifeq ($(BR2_sparc64),y)
|
|
|
|
ELFUTILS_CFLAGS += -fPIC
|
|
|
|
endif
|
|
|
|
|
2013-01-06 06:22:43 +01:00
|
|
|
ELFUTILS_CONF_ENV += \
|
2015-11-03 22:04:38 +01:00
|
|
|
CFLAGS="$(ELFUTILS_CFLAGS)" \
|
2016-06-17 16:48:31 +02:00
|
|
|
CPPFLAGS="$(ELFUTILS_CPPFLAGS)"
|
2013-01-06 06:22:43 +01:00
|
|
|
|
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
|
2015-04-23 22:45:57 +02:00
|
|
|
ELFUTILS_CONF_OPTS += --disable-symbol-versioning
|
2013-01-06 06:22:49 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-06 06:22:43 +01:00
|
|
|
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))
|