1 ################################################################################
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
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
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
48 ifeq ($(BR2_PACKAGE_BZIP2
),y
)
49 ELFUTILS_DEPENDENCIES
+= bzip2
50 ELFUTILS_CONF_OPTS
+= --with-bzlib
52 ELFUTILS_CONF_OPTS
+= --without-bzlib
55 ifeq ($(BR2_PACKAGE_XZ
),y
)
56 ELFUTILS_DEPENDENCIES
+= xz
57 ELFUTILS_CONF_OPTS
+= --with-lzma
59 ELFUTILS_CONF_OPTS
+= --without-lzma
62 ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS
),y
)
63 ELFUTILS_CONF_OPTS
+= --enable-progs
65 ELFUTILS_CONF_OPTS
+= --disable-progs
68 $(eval
$(autotools-package
))