Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst Avoid adding -Os to CFLAGS if DBG is s...



details:   https://anonhg.NetBSD.org/src/rev/17164858b6bc
branches:  trunk
changeset: 750761:17164858b6bc
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jan 13 07:52:38 2010 +0000

description:
Avoid adding -Os to CFLAGS if DBG is set and contains -g.
This helps gdb a lot when compiling local debug versions of sysinst.

diffstat:

 distrib/utils/sysinst/Makefile.inc |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r efa2e38c8488 -r 17164858b6bc distrib/utils/sysinst/Makefile.inc
--- a/distrib/utils/sysinst/Makefile.inc        Wed Jan 13 07:48:57 2010 +0000
+++ b/distrib/utils/sysinst/Makefile.inc        Wed Jan 13 07:52:38 2010 +0000
@@ -1,8 +1,10 @@
-#      $NetBSD: Makefile.inc,v 1.49 2010/01/02 21:16:46 dsl Exp $
+#      $NetBSD: Makefile.inc,v 1.50 2010/01/13 07:52:38 martin Exp $
 #
 # Makefile for sysinst
 
+.if empty(DBG:M-g)
 COPTS += -Os
+.endif
 
 PROG=          sysinst
 NOMAN=         # defined



Home | Main Index | Thread Index | Old Index