From: Yann E. MORIN Date: Mon, 31 Oct 2016 12:48:56 +0000 (+0100) Subject: package/elfutils: add host variant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edcbc2d032d84e5549b90854dc022672ef876a8b;p=buildroot.git package/elfutils: add host variant elfutils (libelf and libdw) can be used by host-lttng-babeltrace. Enable all library dependencies, but don't build the programs. Signed-off-by: "Yann E. MORIN" Cc: Philippe Proulx Signed-off-by: Thomas Petazzoni --- diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index 9485d3b292..566e0bf840 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -11,9 +11,11 @@ ELFUTILS_INSTALL_STAGING = YES ELFUTILS_LICENSE = GPLv2+ or LGPLv3+ (library) ELFUTILS_LICENSE_FILES = COPYING-GPLV2 COPYING-LGPLV3 ELFUTILS_DEPENDENCIES = zlib +HOST_ELFUTILS_DEPENDENCIES = host-zlib host-bzip2 host-xz # We patch configure.ac ELFUTILS_AUTORECONF = YES +HOST_ELFUTILS_AUTORECONF = YES # Pass a custom program prefix to avoid a naming conflict between # elfutils binaries and binutils binaries. @@ -21,6 +23,12 @@ ELFUTILS_CONF_OPTS += \ --disable-werror \ --program-prefix="eu-" +HOST_ELFUTILS_CONF_OPTS = \ + --disable-werror \ + --with-bzlib \ + --with-lzma \ + --disable-progs + # elfutils gets confused when lfs mode is forced, so don't ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) ELFUTILS_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS)) @@ -73,3 +81,4 @@ ELFUTILS_CONF_OPTS += --disable-progs endif $(eval $(autotools-package)) +$(eval $(host-autotools-package))