configs: mx53loco: Bump U-Boot version to 2016.07
[buildroot-gz.git] / package / elfutils / elfutils.mk
blobb999d0f9cdd2ffc345b09ee6865066e1955437bf
1 ################################################################################
3 # elfutils
5 ################################################################################
7 ELFUTILS_VERSION = 0.166
8 ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
9 ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION)
10 ELFUTILS_INSTALL_STAGING = YES
11 ELFUTILS_LICENSE = GPLv3, GPLv2, LGPLv3
12 ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3
13 ELFUTILS_DEPENDENCIES = zlib
15 # We patch configure.ac
16 ELFUTILS_AUTORECONF = YES
17 ELFUTILS_CONF_OPTS += --disable-werror
19 # elfutils gets confused when lfs mode is forced, so don't
20 ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
21 ELFUTILS_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))
23 # sparc64 needs -fPIC instead of -fpic
24 ifeq ($(BR2_sparc64),y)
25 ELFUTILS_CFLAGS += -fPIC
26 endif
28 ELFUTILS_CONF_ENV += \
29 CFLAGS="$(ELFUTILS_CFLAGS)" \
30 CPPFLAGS="$(ELFUTILS_CPPFLAGS)"
32 ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS)
34 # Unconditionnally requires gettext.
35 ifeq ($(BR2_NEEDS_GETTEXT),y)
36 ELFUTILS_DEPENDENCIES += gettext
37 ELFUTILS_LDFLAGS += -lintl
38 endif
40 ELFUTILS_CONF_ENV += \
41 LDFLAGS="$(ELFUTILS_LDFLAGS)"
43 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
44 ELFUTILS_DEPENDENCIES += argp-standalone
45 ELFUTILS_CONF_OPTS += --disable-symbol-versioning
46 endif
48 ifeq ($(BR2_PACKAGE_BZIP2),y)
49 ELFUTILS_DEPENDENCIES += bzip2
50 ELFUTILS_CONF_OPTS += --with-bzlib
51 else
52 ELFUTILS_CONF_OPTS += --without-bzlib
53 endif
55 ifeq ($(BR2_PACKAGE_XZ),y)
56 ELFUTILS_DEPENDENCIES += xz
57 ELFUTILS_CONF_OPTS += --with-lzma
58 else
59 ELFUTILS_CONF_OPTS += --without-lzma
60 endif
62 ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y)
63 ELFUTILS_CONF_OPTS += --enable-progs
64 else
65 ELFUTILS_CONF_OPTS += --disable-progs
66 endif
68 $(eval $(autotools-package))