From: Thomas De Schampheleire Date: Tue, 25 May 2021 12:27:36 +0000 (+0200) Subject: package/Makefile.in: pass '-g0' explicitly if !BR2_ENABLE_DEBUG X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebc1ded1913875869eb5cfb27c4100da737e225b;p=buildroot.git package/Makefile.in: pass '-g0' explicitly if !BR2_ENABLE_DEBUG If BR2_ENABLE_DEBUG is not set, Buildroot did not pass any flag to control debug level. This means that the build system of the package itself would control it. Instead, provide an explicit '-g0' (no debugging symbols) to get consistent behavior across packages. Suggested-by: Arnout Vandecappelle Signed-off-by: Thomas De Schampheleire Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/package/Makefile.in b/package/Makefile.in index f4028bc67c..86db62ba5b 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -136,6 +136,9 @@ endif ifeq ($(BR2_OPTIMIZE_FAST),y) TARGET_OPTIMIZATION = -Ofast endif +ifeq ($(BR2_ENABLE_DEBUG),) +TARGET_DEBUGGING = -g0 +endif ifeq ($(BR2_DEBUG_1),y) TARGET_DEBUGGING = -g1 endif