ltrace.mk 1.2 KB

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