1 ################################################################################
5 ################################################################################
7 ELFUTILS_VERSION
= 0.161
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_PATCH
= elfutils-portability-0.161.patch
15 # The tarball does not have a generated configure script
16 ELFUTILS_AUTORECONF
= YES
17 ELFUTILS_CONF_OPTS
+= --disable-werror
19 ELFUTILS_CFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CFLAGS
))
21 # sparc64 needs -fPIC instead of -fpic
22 ifeq ($(BR2_sparc64
),y
)
23 ELFUTILS_CFLAGS
+= -fPIC
26 # elfutils gets confused when lfs mode is forced, so don't
27 ELFUTILS_CONF_ENV
+= \
28 CFLAGS
="$(ELFUTILS_CFLAGS)" \
29 CPPFLAGS
="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))"
31 ELFUTILS_LDFLAGS
= $(TARGET_LDFLAGS
)
33 # Unconditionnally requires gettext.
34 ifeq ($(BR2_NEEDS_GETTEXT
),y
)
35 ELFUTILS_DEPENDENCIES
+= gettext
36 ELFUTILS_LDFLAGS
+= -lintl
39 ELFUTILS_CONF_ENV
+= \
40 LDFLAGS
="$(ELFUTILS_LDFLAGS)"
42 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC
),y
)
43 ELFUTILS_DEPENDENCIES
+= argp-standalone
44 ELFUTILS_CONF_OPTS
+= --disable-symbol-versioning
47 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
48 ELFUTILS_DEPENDENCIES
+= zlib
49 ELFUTILS_CONF_OPTS
+= --with-zlib
51 ELFUTILS_CONF_OPTS
+= --without-zlib
54 ifeq ($(BR2_PACKAGE_BZIP2
),y
)
55 ELFUTILS_DEPENDENCIES
+= bzip2
56 ELFUTILS_CONF_OPTS
+= --with-bzlib
58 ELFUTILS_CONF_OPTS
+= --without-bzlib
61 ifeq ($(BR2_PACKAGE_XZ
),y
)
62 ELFUTILS_DEPENDENCIES
+= xz
63 ELFUTILS_CONF_OPTS
+= --with-lzma
65 ELFUTILS_CONF_OPTS
+= --without-lzma
68 ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS
),y
)
69 ELFUTILS_CONF_OPTS
+= --enable-progs
71 ELFUTILS_CONF_OPTS
+= --disable-progs
74 $(eval
$(autotools-package
))