0030-busybox-compile-with-debug-information.patch 875 B

12345678910111213141516171819202122
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Mon, 3 Jul 2017 01:40:32 +0200
  3. Subject: busybox: compile with debug information
  4. The added debug information is stripped of during packaging, so it does not
  5. increase the package size. It does however slightly change offsets in the
  6. code, preventing the weird ash segfaults we've been seeing. Also, if the
  7. issue returns, we'll have debug information matching the coredumps.
  8. diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
  9. index 40bddd6b58195828951d1e48c12848f4fbfc1430..bba1a40568d4bd0543e4768439a249c89779f29a 100644
  10. --- a/package/utils/busybox/Makefile
  11. +++ b/package/utils/busybox/Makefile
  12. @@ -91,6 +91,8 @@ ifdef CONFIG_BUSYBOX_DEFAULT_NSLOOKUP_LEDE
  13. endif
  14. endif
  15. +TARGET_CFLAGS += -g
  16. +
  17. define Build/Compile
  18. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  19. CC="$(TARGET_CC)" \