6b5a5692e6
The official repo pointed by https://ltrace.org/ hasn't seen any updates in 5 years, so this commit switches to https://github.com/dkogan/ltrace from Dima Kogan that includes some bug fixes, in particular the following commit to avoid a crash: 192e0a6 void struct members are now ignored The previous ltrace version gave a crash on a ARMv7 device, showing this error: "Assertion `field_info->type != ARGTYPE_VOID' failed." Using this commit ltrace shows a '<void>' return value in such cases, but at least avoids the crash. Signed-off-by: Mauro Meneghin <mauro.meneghin@youview.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
33 lines
1.2 KiB
Makefile
33 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# ltrace
|
|
#
|
|
################################################################################
|
|
|
|
# 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))
|
|
LTRACE_DEPENDENCIES = elfutils
|
|
LTRACE_CONF_OPTS = --disable-werror
|
|
LTRACE_LICENSE = GPL-2.0
|
|
LTRACE_LICENSE_FILES = COPYING
|
|
LTRACE_AUTORECONF = YES
|
|
|
|
# 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
|
|
# Also ltrace with libunwind support is broken for MIPS so we disable it
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_mips)$(BR2_mipsel),)
|
|
# --with-elfutils only selects unwinding support backend. elfutils is a
|
|
# mandatory dependency regardless.
|
|
LTRACE_CONF_OPTS += --with-libunwind=yes --with-elfutils=no
|
|
LTRACE_DEPENDENCIES += libunwind
|
|
else
|
|
LTRACE_CONF_OPTS += --with-libunwind=no
|
|
endif
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|