Module Name:    src
Committed By:   mrg
Date:           Fri Feb 10 18:51:32 UTC 2023

Modified Files:
        src/external/gpl3/gdb: Makefile.inc
        src/external/gpl3/gdb.old: Makefile.inc

Log Message:
apply -g1 to the gdb build as well.

reduces the size of gdb.debug and gdbtui.debug by 100MB each on amd64,
and about 70MB total in the debug set.  (across all builds, this may
be in the order of 3-4GB in releasedir output.)


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/Makefile.inc
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb.old/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/Makefile.inc
diff -u src/external/gpl3/gdb/Makefile.inc:1.12 src/external/gpl3/gdb/Makefile.inc:1.13
--- src/external/gpl3/gdb/Makefile.inc:1.12	Tue Apr 13 01:11:05 2021
+++ src/external/gpl3/gdb/Makefile.inc	Fri Feb 10 18:51:32 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.12 2021/04/13 01:11:05 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.13 2023/02/10 18:51:32 mrg Exp $
 
 USE_LIBEDIT=no
 USE_TUI=yes
@@ -17,3 +17,8 @@ CWARNFLAGS.clang+=	-Wno-unused-value -Wn
 COPTS+=			-fcommon
 
 DIST:=		${.PARSEDIR}/dist
+
+# Reduce debugging for these extremely large objects.
+.if ${MKDEBUG:Uno} != "no"
+CXXFLAGS+=      -g1
+.endif

Index: src/external/gpl3/gdb.old/Makefile.inc
diff -u src/external/gpl3/gdb.old/Makefile.inc:1.11 src/external/gpl3/gdb.old/Makefile.inc:1.12
--- src/external/gpl3/gdb.old/Makefile.inc:1.11	Mon Sep 14 00:39:47 2020
+++ src/external/gpl3/gdb.old/Makefile.inc	Fri Feb 10 18:51:32 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.11 2020/09/14 00:39:47 christos Exp $
+# $NetBSD: Makefile.inc,v 1.12 2023/02/10 18:51:32 mrg Exp $
 
 USE_LIBEDIT=no
 USE_TUI=yes
@@ -15,3 +15,8 @@ CWARNFLAGS.clang+=	-Wno-unused-value -Wn
 			-Wno-string-plus-int
 
 DIST:=		${.PARSEDIR}/dist
+
+# Reduce debugging for these extremely large objects.
+.if ${MKDEBUG:Uno} != "no"
+CXXFLAGS+=      -g1
+.endif

Reply via email to