Module Name:    src
Committed By:   lukem
Date:           Sun Jul 23 16:52:38 UTC 2023

Modified Files:
        src/doc: CHANGES
        src/share/man/man5: mk.conf.5
        src/share/mk: bsd.own.mk

Log Message:
bsd.own.mk: force MKSTRIPSYM=no if MKDEBUG=yes

Local symbols are desirable with MKDEBUG=yes, so don't strip them.
Per request from mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.2983 -r1.2984 src/doc/CHANGES
cvs rdiff -u -r1.107 -r1.108 src/share/man/man5/mk.conf.5
cvs rdiff -u -r1.1344 -r1.1345 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2983 src/doc/CHANGES:1.2984
--- src/doc/CHANGES:1.2983	Fri Jul 21 02:42:54 2023
+++ src/doc/CHANGES	Sun Jul 23 16:52:38 2023
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2983 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2984 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -163,3 +163,4 @@ Changes from NetBSD 10.0 to NetBSD 11.0:
 	gcc(1): Import GCC 10.5.  [mrg 20230710]
 	dhcpcd: Import version 10.0.2. [roy 20230719]
 	bta2dpd(8): Add throttle when playing from file. [nat 20230720]
+	build: Force MKSTRIPSYM=no if MKDEBUG=yes.

Index: src/share/man/man5/mk.conf.5
diff -u src/share/man/man5/mk.conf.5:1.107 src/share/man/man5/mk.conf.5:1.108
--- src/share/man/man5/mk.conf.5:1.107	Sat Jul 22 18:49:40 2023
+++ src/share/man/man5/mk.conf.5	Sun Jul 23 16:52:37 2023
@@ -1,4 +1,4 @@
-.\"	$NetBSD: mk.conf.5,v 1.107 2023/07/22 18:49:40 lukem Exp $
+.\"	$NetBSD: mk.conf.5,v 1.108 2023/07/23 16:52:37 lukem Exp $
 .\"
 .\"  Copyright (c) 1999-2023 The NetBSD Foundation, Inc.
 .\"  All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd July 22, 2023
+.Dd July 23, 2023
 .Dt MK.CONF 5
 .Os
 .\" turn off hyphenation
@@ -691,6 +691,12 @@ and
 set and installed in
 .Sy DESTDIR Ns Pa /usr/libdata/debug .
 .NODEF NODEBUG
+.Pp
+If
+.Dq yes ,
+acts as
+.Sy MKSTRIPSYM=no .
+.
 .DFLTn
 .
 .It Sy MKDEBUGKERNEL
@@ -1649,6 +1655,7 @@ userland libraries and getting a backtra
 .Xr rumpkernel 7
 kernel
 loading shared libraries.
+.NOVAR MKDEBUG=yes
 .DFLTy
 .
 .It Sy MKTEGRAFIRMWARE

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1344 src/share/mk/bsd.own.mk:1.1345
--- src/share/mk/bsd.own.mk:1.1344	Sun Jul 23 16:49:29 2023
+++ src/share/mk/bsd.own.mk	Sun Jul 23 16:52:37 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1344 2023/07/23 16:49:29 lukem Exp $
+#	$NetBSD: bsd.own.mk,v 1.1345 2023/07/23 16:52:37 lukem Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1498,6 +1498,13 @@ MKLIBCXX:=	yes
 .endif
 
 #
+# Disable MKSTRIPSYM if MKDEBUG is enabled.
+#
+.if ${MKDEBUG} != "no"
+MKSTRIPSYM:=	no
+.endif
+
+#
 # install(1) parameters.
 #
 COPY?=		-c

Reply via email to