xref: /OK3568_Linux_fs/buildroot/package/ltrace/ltrace.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# ltrace
4#
5################################################################################
6
7# This github version has some extra fixes on top of https://ltrace.org/
8# in particular the following commit to avoid a crash:
9#   192e0a6 void struct members are now ignored
10LTRACE_VERSION = 82c66409c7a93ca6ad2e4563ef030dfb7e6df4d4
11LTRACE_SITE = $(call github,dkogan,ltrace,$(LTRACE_VERSION))
12LTRACE_DEPENDENCIES = elfutils
13LTRACE_CONF_OPTS = --disable-werror
14LTRACE_LICENSE = GPL-2.0
15LTRACE_LICENSE_FILES = COPYING
16LTRACE_AUTORECONF = YES
17
18# ltrace can use libunwind only if libc has backtrace() support
19# We don't normally do so for uClibc and we can't know if it's external
20# Also ltrace with libunwind support is broken for MIPS so we disable it
21ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
22ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_mips)$(BR2_mipsel),)
23# --with-elfutils only selects unwinding support backend. elfutils is a
24# mandatory dependency regardless.
25LTRACE_CONF_OPTS += --with-libunwind=yes --with-elfutils=no
26LTRACE_DEPENDENCIES += libunwind
27else
28LTRACE_CONF_OPTS += --with-libunwind=no
29endif
30endif
31
32$(eval $(autotools-package))
33