From 8e6c06fb11684ab8aa5454338024040dae95e57e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 6 Jan 2013 05:22:49 +0000 Subject: elfutils: towards uClibc support: argp-standalone usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit elfutils uses the argp family of functions, that isn't available in uClibc. So, we add a dependency on argp-standalone if building with uClibc, and modify elfutils source code to link against argp if needed. Heavily based from work done by Stefan Fröberg, but with many further modifications by Thomas Petazzoni. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/elfutils/elfutils.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/elfutils/elfutils.mk') diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index f8a4e85dab..9f9de52ef9 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -25,6 +25,10 @@ ELFUTILS_CONF_ENV += \ CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))" endif +ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y) + ELFUTILS_DEPENDENCIES += argp-standalone +endif + ifeq ($(BR2_PACKAGE_ZLIB),y) ELFUTILS_DEPENDENCIES += zlib ELFUTILS_CONF_OPT += --with-zlib -- cgit v1.2.1