From 66ac1363a620b9e5aea27626552db2329806d92c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 31 Dec 2024 12:19:24 +0000 Subject: [PATCH] CFLAGS: Deduplicate debugging information https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-fdebug-types-section Signed-off-by: Michael Tremer --- macros/cflags.macro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/macros/cflags.macro b/macros/cflags.macro index ac54f6452..b8a245883 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -8,8 +8,11 @@ build # Export LDFLAGS export LDFLAGS = - # Enable optimisation and compile in debugging information - CFLAGS = -O2 -g + # Enable optimisation + CFLAGS += -O2 + + # Compile in debugging information + CFLAGS += -g -fdebug-types-section # Enable all compiler warnings CFLAGS += -Wall -- 2.47.3