summaryrefslogtreecommitdiffstats
path: root/package/elfutils/elfutils.mk
blob: 9f9de52ef9da61d969326e72053a435df542cf70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#############################################################
#
# elfutils
#
#############################################################
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
ELFUTILS_CONF_OPT += --disable-werror
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 += \
        CFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))" \
        CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))"
endif

ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y)
 ELFUTILS_DEPENDENCIES += argp-standalone
endif

ifeq ($(BR2_PACKAGE_ZLIB),y)
 ELFUTILS_DEPENDENCIES += zlib
 ELFUTILS_CONF_OPT += --with-zlib
else
 ELFUTILS_CONF_OPT += --without-zlib
endif

ifeq ($(BR2_PACKAGE_BZIP2),y)
 ELFUTILS_DEPENDENCIES += bzip2
 ELFUTILS_CONF_OPT += --with-bzlib
else
 ELFUTILS_CONF_OPT += --without-bzlib
endif

ifeq ($(BR2_PACKAGE_XZ),y)
 ELFUTILS_DEPENDENCIES += xz
 ELFUTILS_CONF_OPT += --with-lzma
else
 ELFUTILS_CONF_OPT += --without-lzma
endif

ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y)
 ELFUTILS_CONF_OPT += --enable-progs
else
 ELFUTILS_CONF_OPT += --disable-progs
endif

$(eval $(autotools-package))
OpenPOWER on IntegriCloud