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 0d370863653e280165c8083061799af97d031169..5d73e817b3c67225bd3fb4e5b7d86e290db7397b 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)" \