2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2004-02-11 07:44:47 +01:00
|
|
|
#
|
|
|
|
# ltrace
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-03 05:46:12 +01:00
|
|
|
|
2015-07-28 11:05:22 +02:00
|
|
|
LTRACE_VERSION = c22d359433b333937ee3d803450dc41998115685
|
2014-07-24 23:59:21 +02:00
|
|
|
LTRACE_SITE = git://anonscm.debian.org/collab-maint/ltrace.git
|
2014-08-28 14:21:31 +02:00
|
|
|
LTRACE_DEPENDENCIES = elfutils
|
2014-09-27 21:32:44 +02:00
|
|
|
LTRACE_CONF_OPTS = --disable-werror
|
2012-12-03 05:46:12 +01:00
|
|
|
LTRACE_LICENSE = GPLv2
|
|
|
|
LTRACE_LICENSE_FILES = COPYING
|
2014-07-24 23:59:21 +02:00
|
|
|
LTRACE_AUTORECONF = YES
|
|
|
|
|
|
|
|
define LTRACE_CREATE_CONFIG_M4
|
|
|
|
mkdir -p $(@D)/config/m4
|
|
|
|
endef
|
|
|
|
LTRACE_POST_PATCH_HOOKS += LTRACE_CREATE_CONFIG_M4
|
2004-02-11 07:44:47 +01:00
|
|
|
|
2013-08-12 20:02:42 +02:00
|
|
|
# ltrace can use libunwind only if libc has backtrace() support
|
|
|
|
# We don't normally do so for uClibc and we can't know if it's external
|
2015-08-16 18:43:46 +02:00
|
|
|
# Also ltrace with libunwind support is broken for MIPS so we disable it
|
2013-08-12 20:02:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
2015-08-16 18:43:46 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_mips)$(BR2_mipsel),)
|
2014-12-09 07:11:48 +01:00
|
|
|
# --with-elfutils only selects unwinding support backend. elfutils is a
|
|
|
|
# mandatory dependency regardless.
|
|
|
|
LTRACE_CONF_OPTS += --with-libunwind=yes --with-elfutils=no
|
2013-08-12 20:02:42 +02:00
|
|
|
LTRACE_DEPENDENCIES += libunwind
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LTRACE_CONF_OPTS += --with-libunwind=no
|
2013-08-12 20:02:42 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|