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
|
|
|
|
2018-11-12 23:44:31 +01:00
|
|
|
ELFUTILS_VERSION = 0.174
|
2013-01-06 06:22:43 +01:00
|
|
|
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
2017-03-10 16:16:53 +01:00
|
|
|
ELFUTILS_SITE = https://sourceware.org/elfutils/ftp/$(ELFUTILS_VERSION)
|
2014-12-01 14:24:35 +01:00
|
|
|
ELFUTILS_INSTALL_STAGING = YES
|
2017-03-30 15:43:35 +02:00
|
|
|
ELFUTILS_LICENSE = GPL-2.0+ or LGPL-3.0+ (library)
|
2018-06-08 08:21:57 +02:00
|
|
|
ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3
|
2017-07-03 22:46:28 +02:00
|
|
|
ELFUTILS_DEPENDENCIES = zlib $(TARGET_NLS_DEPENDENCIES)
|
2016-10-31 13:48:56 +01:00
|
|
|
HOST_ELFUTILS_DEPENDENCIES = host-zlib host-bzip2 host-xz
|
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
|
2016-10-31 13:48:56 +01:00
|
|
|
HOST_ELFUTILS_AUTORECONF = YES
|
2016-08-18 12:17:47 +02:00
|
|
|
|
|
|
|
# Pass a custom program prefix to avoid a naming conflict between
|
|
|
|
# elfutils binaries and binutils binaries.
|
|
|
|
ELFUTILS_CONF_OPTS += \
|
|
|
|
--program-prefix="eu-"
|
2013-01-06 06:22:43 +01:00
|
|
|
|
2016-10-31 13:48:56 +01:00
|
|
|
HOST_ELFUTILS_CONF_OPTS = \
|
|
|
|
--with-bzlib \
|
|
|
|
--with-lzma \
|
|
|
|
--disable-progs
|
|
|
|
|
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
|
|
|
|
2017-07-03 22:46:28 +02:00
|
|
|
ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \
|
|
|
|
$(TARGET_NLS_LIBS)
|
2013-01-06 06:22:52 +01:00
|
|
|
|
|
|
|
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
|
2017-03-30 15:43:33 +02:00
|
|
|
ELFUTILS_LICENSE := $(ELFUTILS_LICENSE), GPL-3.0+ (programs)
|
2016-10-05 01:14:28 +02:00
|
|
|
ELFUTILS_LICENSE_FILES += COPYING
|
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))
|
2016-10-31 13:48:56 +01:00
|
|
|
$(eval $(host-autotools-package))
|