0002-Fix-build-with-uclibc-toolchain.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 4f51b0a6b9a36cc56fa06eb0f76596d8e387f980 Mon Sep 17 00:00:00 2001
  2. From: Gary Bisson <gary.bisson@boundarydevices.com>
  3. Date: Fri, 27 Mar 2020 23:17:30 +0100
  4. Subject: [PATCH] Fix build with uclibc toolchain
  5. From: Laurent Gauthier (OSS) <laurent.gauthier_1@oss.nxp.com>
  6. By default, backtrace support is disabled in uclibc. In that case the
  7. execinfo.h header file is missing, producing a build error.
  8. Signed-off-by: Laurent Gauthier (OSS) <laurent.gauthier_1@oss.nxp.com>
  9. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
  10. ---
  11. openmax_il/source/dbgmacros.h | 14 +++++++-------
  12. 1 file changed, 7 insertions(+), 7 deletions(-)
  13. diff --git a/openmax_il/source/dbgmacros.h b/openmax_il/source/dbgmacros.h
  14. index 3771c91..37ae09f 100755
  15. --- a/openmax_il/source/dbgmacros.h
  16. +++ b/openmax_il/source/dbgmacros.h
  17. @@ -50,13 +50,6 @@
  18. # define __USE_GNU
  19. #endif
  20. -#ifndef ANDROID
  21. -#include <execinfo.h>
  22. -#include <link.h>
  23. -#endif
  24. -#include <dlfcn.h>
  25. -#include <elf.h>
  26. -
  27. /*****************
  28. ** DEBUG FLAGS **
  29. *****************/
  30. @@ -76,6 +69,13 @@
  31. #define TRACE_FILE "trace.log"
  32. #endif
  33. +#ifndef ANDROID
  34. +#include <execinfo.h>
  35. +#include <link.h>
  36. +#endif
  37. +#include <dlfcn.h>
  38. +#include <elf.h>
  39. +
  40. #ifdef LOG_IN_FILE
  41. #define TRACE(...) \
  42. { \
  43. --
  44. 2.25.1