1 ################################################################################
5 ################################################################################
7 ELFUTILS_VERSION
= 0.166
8 ELFUTILS_SOURCE
= elfutils-
$(ELFUTILS_VERSION
).
tar.bz2
9 ELFUTILS_SITE
= https
://sourceware.org
/elfutils
/ftp
/$(ELFUTILS_VERSION
)
10 ELFUTILS_INSTALL_STAGING
= YES
11 ELFUTILS_LICENSE
= GPLv2
+ or LGPLv3
+ (library
)
12 ELFUTILS_LICENSE_FILES
= COPYING-GPLV2 COPYING-LGPLV3
13 ELFUTILS_DEPENDENCIES
= zlib
14 HOST_ELFUTILS_DEPENDENCIES
= host-zlib host-bzip2 host-xz
16 # We patch configure.ac
17 ELFUTILS_AUTORECONF
= YES
18 HOST_ELFUTILS_AUTORECONF
= YES
20 # Pass a custom program prefix to avoid a naming conflict between
21 # elfutils binaries and binutils binaries.
22 ELFUTILS_CONF_OPTS
+= \
24 --program-prefix
="eu-"
26 HOST_ELFUTILS_CONF_OPTS
= \
32 # elfutils gets confused when lfs mode is forced, so don't
33 ELFUTILS_CFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CFLAGS
))
34 ELFUTILS_CPPFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CPPFLAGS
))
36 # sparc64 needs -fPIC instead of -fpic
37 ifeq ($(BR2_sparc64
),y
)
38 ELFUTILS_CFLAGS
+= -fPIC
41 ELFUTILS_CONF_ENV
+= \
42 CFLAGS
="$(ELFUTILS_CFLAGS)" \
43 CPPFLAGS
="$(ELFUTILS_CPPFLAGS)"
45 ELFUTILS_LDFLAGS
= $(TARGET_LDFLAGS
)
47 # Unconditionnally requires gettext.
48 ifeq ($(BR2_NEEDS_GETTEXT
),y
)
49 ELFUTILS_DEPENDENCIES
+= gettext
50 ELFUTILS_LDFLAGS
+= -lintl
53 ELFUTILS_CONF_ENV
+= \
54 LDFLAGS
="$(ELFUTILS_LDFLAGS)"
56 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC
),y
)
57 ELFUTILS_DEPENDENCIES
+= argp-standalone
58 ELFUTILS_CONF_OPTS
+= --disable-symbol-versioning
61 ifeq ($(BR2_PACKAGE_BZIP2
),y
)
62 ELFUTILS_DEPENDENCIES
+= bzip2
63 ELFUTILS_CONF_OPTS
+= --with-bzlib
65 ELFUTILS_CONF_OPTS
+= --without-bzlib
68 ifeq ($(BR2_PACKAGE_XZ
),y
)
69 ELFUTILS_DEPENDENCIES
+= xz
70 ELFUTILS_CONF_OPTS
+= --with-lzma
72 ELFUTILS_CONF_OPTS
+= --without-lzma
75 ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS
),y
)
76 ELFUTILS_CONF_OPTS
+= --enable-progs
77 ELFUTILS_LICENSE
:= $(ELFUTILS_LICENSE
), GPLv3
+ (programs
)
78 ELFUTILS_LICENSE_FILES
+= COPYING
80 ELFUTILS_CONF_OPTS
+= --disable-progs
83 $(eval
$(autotools-package
))
84 $(eval
$(host-autotools-package
))