package/elfutils: add host variant
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 31 Oct 2016 12:48:56 +0000 (13:48 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 13 Dec 2016 23:00:25 +0000 (00:00 +0100)
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" <yann.morin.1998@free.fr>
Cc: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/elfutils/elfutils.mk

index 9485d3b292a6952d087d5a395947952356d8a6af..566e0bf84037d3eba138f64731d0ad2532629f75 100644 (file)
@@ -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))