mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/uclibc: enable DODEBUG when BR2_ENABLE_RUNTIME_DEBUG
The DODEBUG=y option of uClibc causes uClibc to be built with -O0 and -DDEBUG, which has a significant runtime performance impact. Currently, DODEBUG=y is passed when BR2_ENABLE_DEBUG=y, but BR2_ENABLE_DEBUG is only about enabling debugging symbols, not about runtime debugging additions. The more recently added BR2_ENABLE_RUNTIME_DEBUG option is precisely designed for that, so we changed the logic to pass DODEBUG=y when BR2_ENABLE_RUNTIME_DEBUG=y, and not BR2_ENABLE_DEBUG=y. This allows to build uClibc with debugging symbols when BR2_ENABLE_DEBUG=y, without disabling optimizations and adding more debugging features that have a runtime performance impact. Signed-off-by: Ben Wolsieffer <Ben.Wolsieffer@hefring.com> [Thomas: extracted from https://patchwork.ozlabs.org/project/buildroot/patch/20220803200629.3172370-1-Ben.Wolsieffer@hefring.com/ and split into its own independent patch.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
17481bd0bf
commit
f9867a725c
@@ -217,7 +217,7 @@ endif
|
|||||||
#
|
#
|
||||||
# Debug
|
# Debug
|
||||||
#
|
#
|
||||||
ifeq ($(BR2_ENABLE_DEBUG),y)
|
ifeq ($(BR2_ENABLE_RUNTIME_DEBUG),y)
|
||||||
define UCLIBC_DEBUG_CONFIG
|
define UCLIBC_DEBUG_CONFIG
|
||||||
$(call KCONFIG_ENABLE_OPT,DODEBUG)
|
$(call KCONFIG_ENABLE_OPT,DODEBUG)
|
||||||
endef
|
endef
|
||||||
|
|||||||
Reference in New Issue
Block a user