52b325d1d4
The version bump to 0.189 with commit 258c27f6335aa66ce634c93b82ab146bf65f7f2 introduced an error when libstdc++ support is not available and --disable-demangler was not used: https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=73e212b0a778c6dbe84f79b7eb2647dea50ea16f Fixes: http://autobuild.buildroot.net/results/cd4/cd4ca1a2b2eabe6937cb920cda5d8e566216546e/ Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
106 lines
2.7 KiB
Makefile
106 lines
2.7 KiB
Makefile
################################################################################
|
|
#
|
|
# elfutils
|
|
#
|
|
################################################################################
|
|
|
|
ELFUTILS_VERSION = 0.189
|
|
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
|
ELFUTILS_SITE = https://sourceware.org/elfutils/ftp/$(ELFUTILS_VERSION)
|
|
ELFUTILS_INSTALL_STAGING = YES
|
|
ELFUTILS_LICENSE = GPL-2.0+ or LGPL-3.0+ (library)
|
|
ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3
|
|
ELFUTILS_CPE_ID_VENDOR = elfutils_project
|
|
ELFUTILS_DEPENDENCIES = host-pkgconf zlib $(TARGET_NLS_DEPENDENCIES)
|
|
HOST_ELFUTILS_DEPENDENCIES = host-pkgconf host-zlib host-bzip2 host-xz
|
|
|
|
# We patch configure.ac
|
|
ELFUTILS_AUTORECONF = YES
|
|
HOST_ELFUTILS_AUTORECONF = YES
|
|
|
|
# Pass a custom program prefix to avoid a naming conflict between
|
|
# elfutils binaries and binutils binaries.
|
|
ELFUTILS_CONF_OPTS += \
|
|
--program-prefix="eu-"
|
|
|
|
HOST_ELFUTILS_CONF_OPTS = \
|
|
--with-bzlib \
|
|
--with-lzma \
|
|
--without-zstd \
|
|
--disable-progs
|
|
|
|
# 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))
|
|
|
|
# sparc64 needs -fPIC instead of -fpic
|
|
ifeq ($(BR2_sparc64),y)
|
|
ELFUTILS_CFLAGS += -fPIC
|
|
endif
|
|
|
|
ELFUTILS_CONF_ENV += \
|
|
CFLAGS="$(ELFUTILS_CFLAGS)" \
|
|
CPPFLAGS="$(ELFUTILS_CPPFLAGS)"
|
|
|
|
ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \
|
|
$(TARGET_NLS_LIBS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
ELFUTILS_LDFLAGS += -latomic
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
|
ELFUTILS_DEPENDENCIES += musl-fts
|
|
ELFUTILS_LDFLAGS += -lfts
|
|
endif
|
|
|
|
# disable for now, needs "distro" support
|
|
ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod
|
|
HOST_ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod
|
|
|
|
ELFUTILS_CONF_ENV += \
|
|
LDFLAGS="$(ELFUTILS_LDFLAGS)"
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
|
ELFUTILS_DEPENDENCIES += argp-standalone
|
|
ELFUTILS_CONF_OPTS += --disable-symbol-versioning
|
|
endif
|
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
ELFUTILS_CONF_OPTS += --enable-demangler
|
|
else
|
|
ELFUTILS_CONF_OPTS += --disable-demangler
|
|
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_ZSTD),y)
|
|
ELFUTILS_DEPENDENCIES += zstd
|
|
ELFUTILS_CONF_OPTS += --with-zstd
|
|
else
|
|
ELFUTILS_CONF_OPTS += --without-zstd
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y)
|
|
ELFUTILS_CONF_OPTS += --enable-progs
|
|
ELFUTILS_LICENSE += , GPL-3.0+ (programs)
|
|
ELFUTILS_LICENSE_FILES += COPYING
|
|
else
|
|
ELFUTILS_CONF_OPTS += --disable-progs
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|