All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/busybox: Fallback to -g2 in if -g3 is enabled.
@ 2024-04-16 19:27 Dmitry Chestnykh
  2024-05-09 14:33 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Chestnykh @ 2024-04-16 19:27 UTC (permalink / raw)
  To: buildroot; +Cc: yann.morin.1998, Dmitry Chestnykh

Linker process hangs if busybox was built with -g3,
so fallback to -g2 in this case.
The issue can be reproduced for example with
qemu_aarch64_virt_defconfig by selecting BR2_DEBUG_3.

Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
---
 package/busybox/busybox.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index eb5e7ad922..e9a7fce554 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -18,6 +18,11 @@ BUSYBOX_IGNORE_CVES += CVE-2022-28391
 BUSYBOX_CFLAGS = \
 	$(TARGET_CFLAGS)
 
+# Linking hangs with -g3, fallback to -g2
+ifeq ($(BR2_DEBUG_3),y)
+       BUSYBOX_CFLAGS += -g2
+endif
+
 BUSYBOX_LDFLAGS = \
 	$(TARGET_LDFLAGS)
 
-- 
2.44.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-09 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-16 19:27 [Buildroot] [PATCH] package/busybox: Fallback to -g2 in if -g3 is enabled Dmitry Chestnykh
2024-05-09 14:33 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.