]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
CFLAGS: Deduplicate debugging information
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 Dec 2024 12:19:24 +0000 (12:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 Dec 2024 12:19:24 +0000 (12:19 +0000)
  https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-fdebug-types-section

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
macros/cflags.macro

index ac54f64521b8585a5024e538a04e3dc512754fb9..b8a2458836e679b34a437af789ff65c524a0b144 100644 (file)
@@ -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