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
|
|
|
|
2014-07-24 23:59:21 +02:00
|
|
|
LTRACE_VERSION = 0896ce554f80afdcba81d9754f6104f863dea803
|
|
|
|
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
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),)
|
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))
|