Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3 apply -g1 to the gdb build as well.



details:   https://anonhg.NetBSD.org/src/rev/72a5864f09c9
branches:  trunk
changeset: 373440:72a5864f09c9
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Feb 10 18:51:32 2023 +0000

description:
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.)

diffstat:

 external/gpl3/gdb.old/Makefile.inc |  7 ++++++-
 external/gpl3/gdb/Makefile.inc     |  7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r aa0d1643a43d -r 72a5864f09c9 external/gpl3/gdb.old/Makefile.inc
--- a/external/gpl3/gdb.old/Makefile.inc        Fri Feb 10 13:22:58 2023 +0000
+++ b/external/gpl3/gdb.old/Makefile.inc        Fri Feb 10 18:51:32 2023 +0000
@@ -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 @@
                        -Wno-string-plus-int
 
 DIST:=         ${.PARSEDIR}/dist
+
+# Reduce debugging for these extremely large objects.
+.if ${MKDEBUG:Uno} != "no"
+CXXFLAGS+=      -g1
+.endif
diff -r aa0d1643a43d -r 72a5864f09c9 external/gpl3/gdb/Makefile.inc
--- a/external/gpl3/gdb/Makefile.inc    Fri Feb 10 13:22:58 2023 +0000
+++ b/external/gpl3/gdb/Makefile.inc    Fri Feb 10 18:51:32 2023 +0000
@@ -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 @@
 COPTS+=                        -fcommon
 
 DIST:=         ${.PARSEDIR}/dist
+
+# Reduce debugging for these extremely large objects.
+.if ${MKDEBUG:Uno} != "no"
+CXXFLAGS+=      -g1
+.endif



Home | Main Index | Thread Index | Old Index