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
|
|
|
|
2020-10-23 15:43:29 +02:00
|
|
|
# This github version has some extra fixes on top of https://ltrace.org/
|
|
|
|
# in particular the following commit to avoid a crash:
|
|
|
|
# 192e0a6 void struct members are now ignored
|
|
|
|
LTRACE_VERSION = 82c66409c7a93ca6ad2e4563ef030dfb7e6df4d4
|
|
|
|
LTRACE_SITE = $(call github,dkogan,ltrace,$(LTRACE_VERSION))
|
2014-08-28 14:21:31 +02:00
|
|
|
LTRACE_DEPENDENCIES = elfutils
|
2014-09-27 21:32:44 +02:00
|
|
|
LTRACE_CONF_OPTS = --disable-werror
|
2017-03-30 15:43:32 +02:00
|
|
|
LTRACE_LICENSE = GPL-2.0
|
2012-12-03 05:46:12 +01:00
|
|
|
LTRACE_LICENSE_FILES = COPYING
|
2014-07-24 23:59:21 +02:00
|
|
|
LTRACE_AUTORECONF = YES
|
|
|
|
|
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))
|