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
18 # Pass a custom program prefix to avoid a naming conflict between
19 # elfutils binaries and binutils binaries.
20 ELFUTILS_CONF_OPTS
+= \
22 --program-prefix
="eu-"
24 # elfutils gets confused when lfs mode is forced, so don't
25 ELFUTILS_CFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CFLAGS
))
26 ELFUTILS_CPPFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CPPFLAGS
))
28 # sparc64 needs -fPIC instead of -fpic
29 ifeq ($(BR2_sparc64
),y
)
30 ELFUTILS_CFLAGS
+= -fPIC
33 ELFUTILS_CONF_ENV
+= \
34 CFLAGS
="$(ELFUTILS_CFLAGS)" \
35 CPPFLAGS
="$(ELFUTILS_CPPFLAGS)"
37 ELFUTILS_LDFLAGS
= $(TARGET_LDFLAGS
)
39 # Unconditionnally requires gettext.
40 ifeq ($(BR2_NEEDS_GETTEXT
),y
)
41 ELFUTILS_DEPENDENCIES
+= gettext
42 ELFUTILS_LDFLAGS
+= -lintl
45 ELFUTILS_CONF_ENV
+= \
46 LDFLAGS
="$(ELFUTILS_LDFLAGS)"
48 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC
),y
)
49 ELFUTILS_DEPENDENCIES
+= argp-standalone
50 ELFUTILS_CONF_OPTS
+= --disable-symbol-versioning
53 ifeq ($(BR2_PACKAGE_BZIP2
),y
)
54 ELFUTILS_DEPENDENCIES
+= bzip2
55 ELFUTILS_CONF_OPTS
+= --with-bzlib
57 ELFUTILS_CONF_OPTS
+= --without-bzlib
60 ifeq ($(BR2_PACKAGE_XZ
),y
)
61 ELFUTILS_DEPENDENCIES
+= xz
62 ELFUTILS_CONF_OPTS
+= --with-lzma
64 ELFUTILS_CONF_OPTS
+= --without-lzma
67 ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS
),y
)
68 ELFUTILS_CONF_OPTS
+= --enable-progs
70 ELFUTILS_CONF_OPTS
+= --disable-progs
73 $(eval
$(autotools-package
))