package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / elfutils / elfutils.mk
blobcc056182cb24fd626c5d21cdc2d6ed33550b4ead
1 ################################################################################
3 # elfutils
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
24 endif
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
37 endif
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
45 endif
47 ifeq ($(BR2_PACKAGE_ZLIB),y)
48 ELFUTILS_DEPENDENCIES += zlib
49 ELFUTILS_CONF_OPTS += --with-zlib
50 else
51 ELFUTILS_CONF_OPTS += --without-zlib
52 endif
54 ifeq ($(BR2_PACKAGE_BZIP2),y)
55 ELFUTILS_DEPENDENCIES += bzip2
56 ELFUTILS_CONF_OPTS += --with-bzlib
57 else
58 ELFUTILS_CONF_OPTS += --without-bzlib
59 endif
61 ifeq ($(BR2_PACKAGE_XZ),y)
62 ELFUTILS_DEPENDENCIES += xz
63 ELFUTILS_CONF_OPTS += --with-lzma
64 else
65 ELFUTILS_CONF_OPTS += --without-lzma
66 endif
68 ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y)
69 ELFUTILS_CONF_OPTS += --enable-progs
70 else
71 ELFUTILS_CONF_OPTS += --disable-progs
72 endif
74 $(eval $(autotools-package))